View Single Post
Old 2013-05-16, 12:34 PM   #23
Cleo
Subversive filth of the hedonistic decadent West
 
Cleo's Avatar
 
Join Date: Mar 2003
Location: Southeast Florida
Posts: 27,936
Quote:
Originally Posted by Simon View Post
You likely know that a class can be applied to as many elements as you want, while an ID should only be applied once to one element on any page/document. So having many divs with an ID of navcontainer probably isn't what you meant to do.

You could just convert the navcontainer to a class instead of an ID so you can use it multiple times. And then in the interest of avoiding all divitis, you can consider applying that new navcontainer class directly to the ULs themselves
Yeah that was some old code that was reused. One of the few bits of old code that was reused.

I noticed that I had done that late last night. It seemed to be working so I left it alone but I do know that it's wrong.

But I just changed all the IDs to classes.
__________________
Free Rides on Uber and Lyft
Uber Car: uberTzTerri
Lyft Car: TZ896289
Cleo is offline   Reply With Quote