<?xml version="1.0" encoding="utf-8" ?><rss version="2.0" xml:base="https://www.webmaster-forums.net/crss/node/1027879" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title></title>
    <link>https://www.webmaster-forums.net/crss/node/1027879</link>
    <description></description>
    <language>en</language>
          <item>
    <title></title>
    <link>https://www.webmaster-forums.net/html-css-and-javascript/css-div-boxes#comment-1165781</link>
    <description> &lt;p&gt;that did it.  awesome awesome awesome!  Thanks yet again.  &lt;img src=&quot;https://www.webmaster-forums.net/misc/smileys/smile.png&quot; title=&quot;Smiling&quot; alt=&quot;Smiling&quot; class=&quot;smiley-content&quot; /&gt;&lt;/p&gt;
 </description>
     <pubDate>Thu, 10 Feb 2005 04:25:26 +0000</pubDate>
 <dc:creator>fifeclub</dc:creator>
 <guid isPermaLink="false">comment 1165781 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/html-css-and-javascript/css-div-boxes#comment-1165711</link>
    <description> &lt;p&gt;add display:block; to .center&lt;/p&gt;
 </description>
     <pubDate>Wed, 09 Feb 2005 10:56:01 +0000</pubDate>
 <dc:creator>Renegade</dc:creator>
 <guid isPermaLink="false">comment 1165711 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/html-css-and-javascript/css-div-boxes#comment-1165697</link>
    <description> &lt;blockquote class=&quot;bb-quote-body&quot;&gt;&lt;p&gt;&lt;strong&gt;andy206uk wrote:&lt;/strong&gt; To center things in IE you have to use &quot;text-align: center&quot; applied to the surrounding div or if it&#039;s the outer most div, on the body tag. This is another one of those &quot;ie not working properly things&quot;. To center in standards compliant browsers you set the left and right margin&#039;s to &quot;auto&quot;.&lt;/p&gt;
&lt;p&gt;Using inline styles (yuk!) here&#039;s an example that should work across the board:&lt;/p&gt;
&lt;p&gt;&lt;div class=&quot;codeblock&quot;&gt;&lt;code&gt;&amp;lt;body style=&amp;quot;text-align: center;&amp;quot;&amp;gt;&lt;br /&gt;&amp;nbsp; &amp;lt;div style=&amp;quot;margin: 0 auto 0 auto;&amp;quot;&amp;gt;&amp;lt;p&amp;gt;Content&amp;lt;/p&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;&amp;lt;/body&amp;gt;&lt;/code&gt;&lt;/div&gt;&#039;&lt;/p&gt;
&lt;p&gt;Please note, if you set the outer element to text-align: center the effect with cascade and effect the inner element as well, so you need to add text-align: left to the inner div to correct that.&lt;/p&gt;&lt;/blockquote&gt;
&lt;p&gt;Sorry to bring back an old thread but I&#039;m still having this centering issue, but with a different section.  Your solution seemed to work on my previous issue but now I&#039;m just tying to center a plain simple image.&lt;/p&gt;
&lt;p&gt;On &lt;a href=&quot;http://www.hampton-homes.net/development/about.php&quot; class=&quot;bb-url&quot;&gt;this page&lt;/a&gt; I&#039;m just trying to center the drawing image of homes at the bottom.  At first I did it inline but then I tried making the css external so that I can use it over and over again.  I&#039;ve tried just one, then just the other, now both and nothing works in either IE or FF.   &lt;img src=&quot;https://www.webmaster-forums.net/misc/smileys/sad.png&quot; title=&quot;Sad&quot; alt=&quot;Sad&quot; class=&quot;smiley-content&quot; /&gt; &lt;/p&gt;
&lt;p&gt;&lt;code&gt;.center {text-align: center; margin: 0 auto 0 auto;}&lt;/code&gt;&#039;&lt;br /&gt;
&lt;code&gt;&amp;lt;img src=&amp;quot;/development/graphics/drawing.jpg&amp;quot; width=&amp;quot;600&amp;quot; height=&amp;quot;125&amp;quot; alt=&amp;quot;&amp;quot; class=&amp;quot;center&amp;quot; /&amp;gt;&lt;/code&gt;&#039;&lt;br /&gt;
 &lt;img src=&quot;https://www.webmaster-forums.net/misc/smileys/confused.png&quot; title=&quot;Confused&quot; alt=&quot;Confused&quot; class=&quot;smiley-content&quot; /&gt;&lt;/p&gt;
 </description>
     <pubDate>Wed, 09 Feb 2005 04:29:53 +0000</pubDate>
 <dc:creator>fifeclub</dc:creator>
 <guid isPermaLink="false">comment 1165697 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/html-css-and-javascript/css-div-boxes#comment-1165015</link>
    <description> &lt;p&gt;I must admit to a boo-boo in my code above. Class must be used instead of ID, as ID is unique and can only be used once.  :blush:&lt;/p&gt;
 </description>
     <pubDate>Fri, 28 Jan 2005 13:16:42 +0000</pubDate>
 <dc:creator>AyntRyte</dc:creator>
 <guid isPermaLink="false">comment 1165015 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/html-css-and-javascript/css-div-boxes#comment-1165001</link>
    <description> &lt;p&gt;To center things in IE you have to use &quot;text-align: center&quot; applied to the surrounding div or if it&#039;s the outer most div, on the body tag. This is another one of those &quot;ie not working properly things&quot;. To center in standards compliant browsers you set the left and right margin&#039;s to &quot;auto&quot;.&lt;/p&gt;
&lt;p&gt;Using inline styles (yuk!) here&#039;s an example that should work across the board:&lt;/p&gt;
&lt;p&gt;&lt;div class=&quot;codeblock&quot;&gt;&lt;code&gt;&amp;lt;body style=&amp;quot;text-align: center;&amp;quot;&amp;gt;&lt;br /&gt;&amp;nbsp; &amp;lt;div style=&amp;quot;margin: 0 auto 0 auto;&amp;quot;&amp;gt;&amp;lt;p&amp;gt;Content&amp;lt;/p&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;&amp;lt;/body&amp;gt;&lt;/code&gt;&lt;/div&gt;&#039;&lt;/p&gt;
&lt;p&gt;Please note, if you set the outer element to text-align: center the effect with cascade and effect the inner element as well, so you need to add text-align: left to the inner div to correct that.&lt;/p&gt;
 </description>
     <pubDate>Fri, 28 Jan 2005 09:15:05 +0000</pubDate>
 <dc:creator>andy206uk</dc:creator>
 <guid isPermaLink="false">comment 1165001 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/html-css-and-javascript/css-div-boxes#comment-1164991</link>
    <description> &lt;p&gt;DIFFERENT QUESTION:&lt;/p&gt;
&lt;p&gt;I don&#039;t want to clog up the forums with lots of threads so I&#039;m going to ask another (yet different) css question here.  I used the code above &lt;a href=&quot;http://www.hampton-homes.net/development/&quot; class=&quot;bb-url&quot;&gt;here&lt;/a&gt; to make the vertical boxes which worked great.  All of that code is contained in an overall content container div, appropriately named &quot;container&quot;.  Now I want to center my container div but I just discovered that XHTML does not support .  &lt;img src=&quot;https://www.webmaster-forums.net/misc/smileys/sad.png&quot; title=&quot;Sad&quot; alt=&quot;Sad&quot; class=&quot;smiley-content&quot; /&gt;  So seperately I tried the css code of text-align:center and the html code of align=&quot;center&quot;.  Both solutions (either together as they are now or seperately) work fine in Internet Explorer but not in Firefox.  :eek: (Isn&#039;t it usually that things work in FF but not IE)  Anyway, since I can&#039;t use  and the two workarounds don&#039;t work in FF, what else can I do to center my container div and still validate, or any content that I may need to center in the future?  &lt;/p&gt;
&lt;p&gt;Thanks yet again.&lt;/p&gt;
 </description>
     <pubDate>Fri, 28 Jan 2005 05:45:31 +0000</pubDate>
 <dc:creator>fifeclub</dc:creator>
 <guid isPermaLink="false">comment 1164991 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/html-css-and-javascript/css-div-boxes#comment-1164983</link>
    <description> &lt;p&gt;That was easy.  Thanks!&lt;/p&gt;
 </description>
     <pubDate>Fri, 28 Jan 2005 04:24:05 +0000</pubDate>
 <dc:creator>fifeclub</dc:creator>
 <guid isPermaLink="false">comment 1164983 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/html-css-and-javascript/css-div-boxes#comment-1164907</link>
    <description> &lt;p&gt;Or, you can give it a width and make it display:inline;&lt;/p&gt;
 </description>
     <pubDate>Thu, 27 Jan 2005 09:31:08 +0000</pubDate>
 <dc:creator>Renegade</dc:creator>
 <guid isPermaLink="false">comment 1164907 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/html-css-and-javascript/css-div-boxes#comment-1164897</link>
    <description> &lt;p&gt;Try this?&lt;/p&gt;
&lt;p&gt;&lt;div class=&quot;codeblock&quot;&gt;&lt;code&gt;&amp;lt;div style=&amp;quot;float:left; border: black solid 1px; padding:5px&amp;quot;&amp;gt;whatever&amp;lt;/div&amp;gt;&lt;br /&gt;&amp;lt;div style=&amp;quot;float:left; border: black solid 1px; padding:5px&amp;quot;&amp;gt;whatever&amp;lt;/div&amp;gt;&lt;br /&gt;&amp;lt;div style=&amp;quot;float:left; border: black solid 1px; padding:5px&amp;quot;&amp;gt;whatever&amp;lt;/div&amp;gt;&lt;br /&gt;&amp;lt;div style=&amp;quot;float:left; border: black solid 1px; padding:5px&amp;quot;&amp;gt;whatever&amp;lt;/div&amp;gt;&lt;/code&gt;&lt;/div&gt;&#039;&lt;/p&gt;
 </description>
     <pubDate>Thu, 27 Jan 2005 05:00:12 +0000</pubDate>
 <dc:creator>AyntRyte</dc:creator>
 <guid isPermaLink="false">comment 1164897 at https://www.webmaster-forums.net</guid>
  </item>
  </channel>
</rss>
