W3C home > Mailing lists > Public > www-style@w3.org > May 2005

Widths of nested un-ordered lists

From: devosc <devosc@gmail.com>
Date: Mon, 23 May 2005 05:34:16 -0500
Message-ID: <da0b703b05052303341042cf2a@mail.gmail.com>
To: www-style@w3.org

Would it be possible if someone could advise as to how the widths of
un-orders lists and their <li> tags are going to be determined in the
near future.

I have a menu system that determines and or specifies the width of its
submenus (<ul>s) based upon the offsetWidth of the <li>'s <a> anchor
tag, e.g. determining the general width of the textual content and
thus _only_ specifying the width of the anchor element, although there
is a min-width being used for the <li> tag.

This is so that nested / child submenus of the un-ordered list(s) can
have different widths.

I would like to know whether this could potentially be considered as
'quirks' programming - I do not believe that it is.

Essentially each <li> tag is being specifed in the CSS rules to
'float' thus in order to reconstruct the submenu container and to give
it a rectangular shape, the offsetWidth of the <a> anchor tags are
determined and the maximum width is then set to each Anchor tag which
since the <li> tag is the parent container reconstructs the
rectangular container.

If there is a better way, this would be of interest also.

-- 
devosc
Received on Monday, 23 May 2005 10:34:35 GMT

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