W3C home > Mailing lists > Public > www-style@w3.org > February 2008

Re: Collapsing elements

From: David Woolley <forums@david-woolley.me.uk>
Date: Tue, 26 Feb 2008 08:08:11 +0000
Message-ID: <47C3C8EB.60506@david-woolley.me.uk>
To: www-style mailing list <www-style@w3.org>

Brad Kemper wrote:
> 

> As a follow-up, just to be clear, I do not believe CSS should be used to 
> create or control the states, only to style them. HTML already has a way 
> to create and control a binary state. "Type" is used to create a 
> 2-state, click-changeable input ("type=checked" and "type=radio"), and 
> "checked" is used to indicate which of the two states it should start 
> out as. Without the "type", there is already a "non-of-the-above" state.

In the typical case of multi-level menus, collapsing is purely a user 
interface issue.  It should not be represented in the HTML.

The advantage of being able to style nested lists as menus is that the 
fully expanded list, as one gets without CSS or with browsers that don't 
implement the feature, still produces a sensible structure for making 
the selection.


-- 
David Woolley
Emails are not formal business letters, whatever businesses may want.
RFC1855 says there should be an address here, but, in a world of spam,
that is no longer good advice, as archive address hiding may not work.
Received on Tuesday, 26 February 2008 08:08:29 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Monday, 27 April 2009 13:55:01 GMT