> Stu answer this comment: If there is a need for this then I might be
> persuaded to produce a 'more v2'. Maybe Stu will make them if there is a lot
> of comment asking for this all CSS more v2. Or we have to wait for the demo
> that Chris talk about in one of is reply for this topic.

Read the whole thread, it is out there:
http://icant.co.uk/sandbox/morecontentlinks/

> Anyway, an all CSS solution will be welcome.

There is just no way to do this in CSS only unless you use a focus on
the containing element.

Any CSS solution in CSS2 with MSIE 6 still around has the following problem:

- In order to remain keyboard accessible the trigger element HAS to be a link
- You can only access elements inside this link

Now HTML has the good idea that a link is an inline element and should
only contain other inline elements. Putting whole tables into links or
long passages of text to support CSS as the behaviour technology means
you violate any idea of semantic markup we tried to get into the head
of WYSIWYG and CMS developers in the last 5 years. Also think of
accessibility and screen reader users  - links are listed as an own
navigation option.

Stu's solution and CSS only dropdown menus that are keyboard
accessible by nesting tables in links are just overengineering a dead
cause. This is behaviour and it is really easy to do it with
JavaScript - as I have proven with the provided example. In CSS is it
is a hack and impedes markup. Would you make a whole paragraph a link?

The JS Stu's solution uses is only there to avoid the dotted border
around the link when you click it, nothing more.

We had the same discussion about the oh so accessible and well made
CSS dropdowns some days ago:
http://archivist.incutio.com/viewlist/css-discuss/77801

There is no need to shoe-horn behaviour like this into CSS and
sacrifice semantics on the way when it is perfectly logical to do it
with a bit of JavaScript that results in style-able HTML elements.

What is next? "Can we have FORM validation in HTML?" "Database lookups in CSS?"

-- 
Chris Heilmann
Book: http://www.beginningjavascript.com
Blog: http://www.wait-till-i.com
Writing: http://icant.co.uk/
______________________________________________________________________
css-discuss [EMAIL PROTECTED]
http://www.css-discuss.org/mailman/listinfo/css-d
IE7b2 testing hub -- http://css-discuss.incutio.com/?page=IE7
List wiki/FAQ -- http://css-discuss.incutio.com/
Supported by evolt.org -- http://www.evolt.org/help_support_evolt/

Reply via email to