That's what I mean, JS for behavior and binding to element's IDs. If you style IDs with CSS, you can get into trouble if you want to have a second element on the same page with the same styles (2 elements with same ID being a problem), or if you want to change the element's look in a single instance, but keep the functionality.
Kevin On Tue, Mar 1, 2011 at 11:34 PM, andrew23 <[email protected]> wrote: > > > On Feb 24, 10:34 am, "Kevin A. Cameron" <[email protected]> > wrote: > > I've found the best usage of the 2 types of selectors is to style > classes, > > and not elements or ids. For the most part I leave IDs unstyled so that > they > > are open for use for JS > > Why Kevin? > > CSS is for presentation > > Scripts are for behaviour > > Blurring the two is a recipe for a mess > > -- > -- > You received this because you are subscribed to the "Design the Web with > CSS" at Google groups. > To post: [email protected] > To unsubscribe: [email protected] > -- -- You received this because you are subscribed to the "Design the Web with CSS" at Google groups. To post: [email protected] To unsubscribe: [email protected]
