dtp134 — 2011-07-14T13:51:16-04:00 — #1
can an item have both an id AND a class?? or does one trump the other? any help for a massage therapist playing in the IT dept. would be appreciated!
c_ankerstjerne — 2011-07-14T14:04:01-04:00 — #2
Yes, it can. For styling purposes, the
id attribute is more specific than the
class attribute, and if there's a conflict between the
class styling, the
id style will be used.
stevie_d — 2011-07-14T15:09:19-04:00 — #3
Also note that an item can have lots of classes, but only one ID.