It did in my version
! You must have copied something incorrectly.
Changing the id to a class would make no difference (except for the inherrent differences of course). It would have no effect on the targetting - both class and Id would work. The only difference with an Id is that you can only use it once uniquely on a page. (However at this point in time all browsers ignore this and display it just like a class, although you would have prooblems if javascript routines targetted it etc.)
You had #navlist ul in your code which will look for a an unordered list that is within an id of navlist.
e.g.
This is what that would need to look like to work:
Code:
<div id="navlist">
<ul><li></li></ul>
</div>
But what you had was:
Code:
<ul id="navlist">
<li></li>
</ul>
There is no unordered list within the id of navlist. There is however, an unordered list thas has an id of navlist which would need to be targetted differently as follows.
Which means look for ul that has an id of navlist - thats the difference from the first example. Changing the id to a class or vice-versa would make no difference.
Just thought I'd clear that up
Paul
Bookmarks