3 replies [Last post]
loudsox04
Offline
Regular
Boston, MA
Last seen: 16 years 12 weeks ago
Boston, MA
Timezone: GMT-4
Joined: 2004-07-06
Posts: 33
Points: 0

Just wondering - Is it possible/supported/wise to specify both a class AND an id for an element? For example, if you wanted it to follow the general guidelines of a class, but also had some unique rules for that element. Thanks in advance. - Jen[/code]

_janim
Offline
Regular
phinland
Last seen: 16 years 16 weeks ago
phinland
Joined: 2004-06-08
Posts: 22
Points: 0

Class and ID together?

<div id="banana" class="fruit"></div>

...inherits the basic styles of fruit and gets specific styles for a banana.
See what I mean? Smile

Please Provide a link to your code/site. If you can't, then please at least provide the HTML & CSS together.

justers
Offline
newbie
England
Last seen: 16 years 10 weeks ago
England
Joined: 2004-07-22
Posts: 8
Points: 0

Class and ID together?

eric meyer has written an article about this, http://www.meyerweb.com/eric/thoughts/2004/07/18/competent-classing/

loudsox04
Offline
Regular
Boston, MA
Last seen: 16 years 12 weeks ago
Boston, MA
Timezone: GMT-4
Joined: 2004-07-06
Posts: 33
Points: 0

Class and ID together?

Thank you!