To me, it seems like extraneous code to have a separate id in with the <ul>. Is there an advantage to putting a separate id in with the <ul>? Or is it just adding more code than necessary?
« Last Edit: Jul 27, 2008, 11:11:04 PM by Nikolas »
Global Moderator Community Supporter?
Jedai Sword Master
Gender:
Posts: 6487
39754 credits Members referred : 374
It's time to use PHP5!
« Reply #1 on: Jul 27, 2008, 09:59:13 PM »
you can use an ID only once, if you have multiple list inside the container "navcont" it's better to use a "natural" list element.
Nikolas' Servant Child
Posts: 30
184 credits Members referred : 0
« Reply #2 on: Jul 28, 2008, 12:28:59 PM »
If you have a single navigation list, either style works. However I would prefer to put an ID on the UL itself, since this allows you to put other ULs in the same DIV that aren't part of the navigation list without them being accidentally styled as a nav list.
Alternatively, you can style the list by using a class rather than an ID. This allows you to have multiple nav lists on the same page, or use the stylesheet on multiple pages without requiring the same ID for the nav list on every page.
Trackback URI for this entry : http://www.webdigity.com/trackback.php?topic=7874