<?xml version="1.0" encoding="utf-8" ?><rss version="2.0" xml:base="https://www.webmaster-forums.net/crss/node/1039700" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title></title>
    <link>https://www.webmaster-forums.net/crss/node/1039700</link>
    <description></description>
    <language>en</language>
          <item>
    <title></title>
    <link>https://www.webmaster-forums.net/html-css-and-javascript/more-css-help#comment-1225878</link>
    <description> &lt;blockquote class=&quot;bb-quote-body&quot;&gt;&lt;p&gt;&lt;strong&gt;robfenn;224603 wrote:&lt;/strong&gt; I thought i&#039;d try another site in CSS, my company&#039;s one ([url]www.sixthsense-esp.co.uk)[/url].&lt;/p&gt;
&lt;p&gt;My rather lame start!&lt;br /&gt;
&lt;a href=&quot;http://www.sixthsense-esp.co.uk/CSSVersion/index.htm&quot; class=&quot;bb-url&quot;&gt;http://www.sixthsense-esp.co.uk/CSSVersion/index.htm&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;I can&#039;t find out how to make the div centered to the page? Presumably, once this is done, i guess i will have to position all other divs with % otherwise they won&#039;t line up with the centered div once users resize their browser?&lt;/p&gt;
&lt;p&gt;Thanks &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;
&lt;p&gt;-Rob&lt;/p&gt;&lt;/blockquote&gt;
&lt;p&gt;set your left and right margin to auto. &lt;/p&gt;
&lt;p&gt;&lt;code&gt;margin-left:auto; margin-right:auto;&lt;/code&gt;&#039;&lt;/p&gt;
&lt;p&gt;works good in both IE and Mozilla&lt;/p&gt;
 </description>
     <pubDate>Wed, 31 Oct 2007 07:44:35 +0000</pubDate>
 <dc:creator>JennyScoth0109</dc:creator>
 <guid isPermaLink="false">comment 1225878 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/html-css-and-javascript/more-css-help#comment-1224883</link>
    <description> &lt;p&gt;As you add content to the DIV, it will automatically stretch downwards. No need to set a height - in fact, I recommend you avoid heights where possible.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Greg&lt;/strong&gt; said:&lt;br /&gt;
&lt;blockquote class=&quot;bb-quote-body&quot;&gt;Quote: position: absolute ; is very useful if you understand it fully and its affects on other element positioning&lt;/blockquote&gt;&lt;/p&gt;
&lt;p&gt;if, however, you don&#039;t FULLY understand it you will have problems&lt;/p&gt;
&lt;p&gt;Well, yes. But it &lt;strong&gt;is&lt;/strong&gt; hard to understand, and the myriad browser bugs don&#039;t help.&lt;/p&gt;
&lt;p&gt;I&#039;d use it for putting corner images on elements and such, but nothing more complex, if I were you.&lt;/p&gt;
 </description>
     <pubDate>Wed, 03 Oct 2007 23:58:02 +0000</pubDate>
 <dc:creator>webwiz</dc:creator>
 <guid isPermaLink="false">comment 1224883 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/html-css-and-javascript/more-css-help#comment-1224854</link>
    <description> &lt;p&gt;Thanks for the advice guys.&lt;/p&gt;
&lt;p&gt;I think one thing i need to do is make the top div (banner) stretch downwards to form a background. Problem is, if i set a height, it does nothing. Any way round this?&lt;/p&gt;
 </description>
     <pubDate>Wed, 03 Oct 2007 09:15:23 +0000</pubDate>
 <dc:creator>robfenn</dc:creator>
 <guid isPermaLink="false">comment 1224854 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/html-css-and-javascript/more-css-help#comment-1224840</link>
    <description> &lt;p&gt;position: absolute ; is very useful if you understand it fully and its affects on other element positioning&lt;/p&gt;
&lt;p&gt;if, however, you don&#039;t FULLY understand it you will have problems&lt;/p&gt;
&lt;p&gt;it&#039;s worth playing with it a bit to see what it does, as sometimes it can be vital to save the alternative being a headache of positioning&lt;br /&gt;
just change some items in a test page to position: absolute and see what it does. that and reading about it is the best way to see whats going on&lt;/p&gt;
 </description>
     <pubDate>Wed, 03 Oct 2007 01:13:33 +0000</pubDate>
 <dc:creator>greg</dc:creator>
 <guid isPermaLink="false">comment 1224840 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/html-css-and-javascript/more-css-help#comment-1224837</link>
    <description> &lt;p&gt;Block elements, such as DIVs, have so-called &quot;static&quot; positioning by default. This simply means the browser will put them one after the other, top to bottom, in the order you have in the HTML.&lt;/p&gt;
&lt;p&gt;No further positioning required.&lt;/p&gt;
&lt;p&gt;FWIW - you can position elements using margins as well as by positioning (absolute or relative).&lt;br /&gt;
You can even use negative margins to good effect. See this &lt;a href=&quot;http://www.communitymx.com/abstract.cfm?cid=B0029&quot; class=&quot;bb-url&quot;&gt;CommunityMX tutorial&lt;/a&gt; for ideas.&lt;/p&gt;
 </description>
     <pubDate>Tue, 02 Oct 2007 22:34:00 +0000</pubDate>
 <dc:creator>webwiz</dc:creator>
 <guid isPermaLink="false">comment 1224837 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/html-css-and-javascript/more-css-help#comment-1224810</link>
    <description> &lt;p&gt;Thanks for that, now centered! So if i should avoid absolute positioning, how shall i be positioning it? Just have &#039;auto&#039; as Megan has put?&lt;/p&gt;
&lt;p&gt;Is it actually possible to put divs on top of each other as i&#039;m not sure how i&#039;m going to get the menu working otherwise?&lt;/p&gt;
&lt;p&gt;&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>Tue, 02 Oct 2007 11:39:19 +0000</pubDate>
 <dc:creator>robfenn</dc:creator>
 <guid isPermaLink="false">comment 1224810 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/html-css-and-javascript/more-css-help#comment-1224665</link>
    <description> &lt;p&gt;Rob,&lt;br /&gt;
Take out the absolute positioning and you are good to go:&lt;/p&gt;
&lt;p&gt;#top {&lt;br /&gt;
position: absolute; top: 0px; left: 0px;   /* &amp;lt;- Take this out */&lt;/p&gt;
&lt;p&gt;I suggest avoiding absolute positioning of structural elements anyway -- too many bugs!&lt;/p&gt;
&lt;p&gt;If you want to center it in Internet Explorer 5.x Windows, add these rules:&lt;/p&gt;
&lt;p&gt;body {text-align: center;}&lt;br /&gt;
#top {text-align: left;}&lt;/p&gt;
 </description>
     <pubDate>Fri, 28 Sep 2007 18:55:00 +0000</pubDate>
 <dc:creator>webwiz</dc:creator>
 <guid isPermaLink="false">comment 1224665 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/html-css-and-javascript/more-css-help#comment-1224607</link>
    <description> &lt;p&gt;Put margin: auto on the container div to center it.&lt;/p&gt;
&lt;p&gt;How you&#039;d handle everything else would depend on what you&#039;re using for layout. Floats would just float within that div.  If you&#039;re positioning elements within that div, put a position: relative on the container. Then anything with position: absolute will be positioned relative to the containing div. &lt;/p&gt;
&lt;p&gt;You&#039;d have something like this:&lt;/p&gt;
&lt;p&gt;#top {margin: 0px auto; position: relative;}&lt;br /&gt;
#innerdiv {position: absolute; top: 50px; left: 30px;} &lt;/p&gt;
&lt;p&gt;Now innerdiv will be positioned 50px from the top and 30px from the left of he #top div.&lt;/p&gt;
&lt;p&gt;Hope that makes sense! I can&#039;t test that code right now because our networks are down and I&#039;m on a different computer...&lt;/p&gt;
 </description>
     <pubDate>Thu, 27 Sep 2007 15:49:31 +0000</pubDate>
 <dc:creator>Megan</dc:creator>
 <guid isPermaLink="false">comment 1224607 at https://www.webmaster-forums.net</guid>
  </item>
  </channel>
</rss>
