Re: Difference between class and id
by Jolly Green Giant <jollygreengiant(at)davidandholly.com>
|
Date: |
Tue, 28 May 2002 09:15:53 -0500 |
To: |
hwg-style(at)hwg.org |
In-Reply-To: |
ahurman |
|
todo: View
Thread,
Original
|
|
<html>
<font size=3D3>Timothy is right...<br>
But also know another difference: when using JavaScript or CSS to mess
with positioned divs, then you reference the div by the "id"
attribute, and not the class.<br><br>
And I also seem to remember something about how some of the older
browsers don't support the "id" attribute sometimes, but I'm
not sure exactly.<br><br>
JGG<br><br>
~=A4~=A4~=A4~=A4~=A4~ Gabriel ~=A4~=A4~=A4~=A4~=A4~<br>
<blockquote type=3Dcite class=3Dcite cite>Hello:<br><br>
It's just a little question that's been around because I just discovered
the<br>
power of <div>.<br>
What's the difference between using <div id=3Dsmth> and <div
class=3Dsmth><br>
(and <div id=3Dsmth1 class=3Dsmth2>)?<br>
Are they supposed to have different content?<br><br>
Thank you all.<br>
Gabriel.</font></blockquote></html>
HWG hwg-style mailing list archives,
maintained by Webmasters @ IWA