Re: LI vs. DIV for menus

The only advantage of LIs over DIVs is the addition of the List Style
Properties:
list-style-position: inside | outside
list-style-image: <url> | none
list-style-type: disc | circle | square | decimal | lower-roman |
upper-roman | lower-alpha | upper-alpha | none

We can easily set the positioning and graphics for menus using XSLT. 
The only difference is using the  list-style-types; not using LIs
means you need to set the bullet characters manually rather than using
the defaults provided by every browser.  The examples I saw set the
list-style to "none" (but I only checked a few), so DIVs would have
worked as well as LIs.

Customizing menu.xsl allows changing the DIVs to LIs.  It also allows
changing the DIVs so they look like LIs.  It may be optimal for the
default menus to use OLs rather than DIVs because menus really are
lists, and using DIVs does not add any function.  Maybe the devs will
make it the default.

With XSL and CSS, you can do anything.  Have fun.

solprovider

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to