Skip to:
Content
Pages
Categories
Search
Top
Bottom

Re: Theme designers: Use CSS classes, not IDs.

Using anchors for navigation (“jump links”) is a good thing, I agree. I’m not advocating the removal of any of the ID’s from templates. The fact that so many WP and BB elements are identified in the DOM is a good thing – for one thing it makes the identification of objects easier in JavaScript.

It’s just that ID based styles are not as extensible as class based styles – ID styles let you describe the style for one and only one element. Class styles let you describe the style for one or more elements that declare they are of that type.

Skip to toolbar