<?xml version="1.0" encoding="utf-8" ?><rss version="2.0" xml:base="https://www.webmaster-forums.net/crss/node/1024527" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title></title>
    <link>https://www.webmaster-forums.net/crss/node/1024527</link>
    <description></description>
    <language>en</language>
          <item>
    <title></title>
    <link>https://www.webmaster-forums.net/html-css-and-javascript/css-positioning-0#comment-1150233</link>
    <description> &lt;p&gt;It has made it clear to me that I can have a class and an id together inside a tag which I didn&#039;t know you could do. But using your code from your first post places one item below the other which isn&#039;t what I wanted to do, so I&#039;m still in the same place I was to begin with!&lt;/p&gt;
 </description>
     <pubDate>Sat, 24 Apr 2004 03:01:49 +0000</pubDate>
 <dc:creator>Fast</dc:creator>
 <guid isPermaLink="false">comment 1150233 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/html-css-and-javascript/css-positioning-0#comment-1150202</link>
    <description> &lt;p&gt;A class can apply to many different elements at the same time, while an id can only apply to one element on any given &quot;page&quot;.&lt;/p&gt;
&lt;p&gt;Classes are also cascading, so you can technically have this:&lt;/p&gt;
&lt;p&gt;&lt;div class=&quot;codeblock&quot;&gt;&lt;code&gt;&amp;lt;div class=&amp;quot;shouting fineprint alert&amp;quot; id=&amp;quot;thisone&amp;quot;&amp;gt;YOUR CONTENT&amp;lt;/div&amp;gt;&lt;/code&gt;&lt;/div&gt;&#039;&lt;/p&gt;
&lt;p&gt;And in the CSS:&lt;/p&gt;
&lt;p&gt;&lt;div class=&quot;codeblock&quot;&gt;&lt;code&gt;.shouting {&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; color: black;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; text-transform: uppercase;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;br /&gt;.fineprint {&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; font-size: small;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;br /&gt;.alert {&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; background-color: yellow;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; border: 1px solid red;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;br /&gt;#thisone {&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; width: 200px;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; height: 200px;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; clear: both;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;/code&gt;&lt;/div&gt;&#039;&lt;/p&gt;
&lt;p&gt;This would allow you to style other elements as needed to show &quot;shouting&quot;, or that the information is &quot;fineprint&quot;, or send an &quot;alert&quot; without them all having to be the same thing.&lt;/p&gt;
&lt;p&gt;The id, however, says, this one and only this one should be this height, width, et cetera. This allows you to control an element specifically.&lt;/p&gt;
&lt;p&gt;Think of classes as general traits that can apply to anyone, anywhere. But id is a fingerprint, or dna -- it only belongs to one element. If you have a name (id) for that element, you can control it with the CSS, JavaScript, et cetera, and use it as an anchor:&lt;/p&gt;
&lt;p&gt;&lt;div class=&quot;codeblock&quot;&gt;&lt;code&gt;&amp;lt;a href=&amp;quot;page.html#thisone&amp;quot;&amp;gt;go to the div named &amp;quot;thisone&amp;quot;&amp;lt;/a&amp;gt;&lt;/code&gt;&lt;/div&gt;&#039;&lt;/p&gt;
&lt;p&gt;Does that help?&lt;/p&gt;
 </description>
     <pubDate>Fri, 23 Apr 2004 15:46:37 +0000</pubDate>
 <dc:creator>Suzanne</dc:creator>
 <guid isPermaLink="false">comment 1150202 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/html-css-and-javascript/css-positioning-0#comment-1149907</link>
    <description> &lt;p&gt;Hmm, now I&#039;m confused. You have a class and an id in the div tags, is this permissible? I thought it was one or the other. I thought I had understood your code but evidently I don&#039;t. Could you explain a little more, I&#039;m a CSS newbie! Thanks.&lt;/p&gt;
 </description>
     <pubDate>Mon, 19 Apr 2004 23:14:22 +0000</pubDate>
 <dc:creator>Fast</dc:creator>
 <guid isPermaLink="false">comment 1149907 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/html-css-and-javascript/css-positioning-0#comment-1149850</link>
    <description> &lt;p&gt;Ah! It had been suggested to me previously to use text-align: center; but it didn&#039;t make any difference at all. Your example makes it much clearer now. I&#039;ll try it out. Thanks Suzanne.&lt;/p&gt;
 </description>
     <pubDate>Mon, 19 Apr 2004 03:20:29 +0000</pubDate>
 <dc:creator>Fast</dc:creator>
 <guid isPermaLink="false">comment 1149850 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/html-css-and-javascript/css-positioning-0#comment-1149844</link>
    <description> &lt;p&gt;Have the items in a  and text-align: center; that div. &lt;/p&gt;
&lt;p&gt;i.e.&lt;/p&gt;
&lt;p&gt;list item text&lt;/p&gt;
&lt;p&gt;list item text&lt;/p&gt;
 </description>
     <pubDate>Mon, 19 Apr 2004 02:23:02 +0000</pubDate>
 <dc:creator>Suzanne</dc:creator>
 <guid isPermaLink="false">comment 1149844 at https://www.webmaster-forums.net</guid>
  </item>
  </channel>
</rss>
