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 &quot;id&quot;
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 &quot;id&quot; attribute sometimes, but I'm
not sure exactly.<br><br>
JGG<br><br>
~=A4~=A4~=A4~=A4~=A4~  Gabriel&nbsp; ~=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 &lt;div&gt;.<br>
What's the difference between using &lt;div id=3Dsmth&gt; and &lt;div
class=3Dsmth&gt;<br>
(and &lt;div id=3Dsmth1 class=3Dsmth2&gt;)?<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