Once upon a time *JB* wrote:
Quote:
Hi All,
What's the difference between:
#header { width: 100%; } |
Selects any element with an *id* attribute that equals "header".
E.g. <div id="header"> or <p id="header"> Same ID can only apear once on
each page.
Quote:
and
div.header { width: 100%; } |
Selects any *div* element with a *class* attribute that contains the
word "header".
E.g. <div class="header"> but *not* <p class="header"> Same class can
apear many times on each page, and with different elements.
--
/Arne
Google Group Users, read about The Usenet Improvement Project:
http://blinkynet.net/comp/uip5.html