Rahul Gonsalves wrote: >[1] http://www.littleandreid.com/mentaidyn/about > ><ul class="mainnav"> ><li><a href="/" id="menu_default"><span>Home</span></a></li> ><li><a href="about" class="active" >id="menu_about"><span>About</span></a></li> >[--more links--] ></ul> > >Now, I want to assign the class "Active" to have the different >background. What should I do? This changes from page to page, >dynamically, so I can't use the ID property.
Actually, you can. IDs can be used once PER PAGE. So long as you use the ID only once on each page (which should be the case in this situation, unless I am badly misunderstanding you), you'll be fine. I personally prefer to use the ID in this situation rather than !important as was suggested earlier, but that's really a matter of choice. Mostly, I just wanted to make it clear that IDs do work for dynamic assignments, so long as you use them carefully. It is a fairly common misconception that they don't, and it is worth noting the correction for users searching the archives. HTH, -Adam Kuehn ______________________________________________________________________ css-discuss [EMAIL PROTECTED] http://www.css-discuss.org/mailman/listinfo/css-d List wiki/FAQ -- http://css-discuss.incutio.com/ Supported by evolt.org -- http://www.evolt.org/help_support_evolt/