<?xml version="1.0"?>
<rss version="2.0">
 <channel>
  <title>Setting div to attach to bottom of any screen | WPDFD.com Forums</title>
  <link>http://www.wpdfd.com/forums/wpdfd/layout/setting_div_to_attach_to_bottom_of_any_screen/</link>
  <description>A Layout forum thread at WPDFD.com</description>
  <language>en-us</language>
  <pubDate>10/02/07, 275 30 2007 2007:%i:1191375029 20:30:29</pubDate>
  <lastBuildDate>08/08/08, 221 06 2008 2008:%i:1218229573 16:06:13</lastBuildDate>
  <docs>http://blogs.law.harvard.edu/tech/rss</docs>
  <generator>NineLabs Framework Feed Generator</generator>
  <managingEditor>sitemaster@wpdfd.com</managingEditor>
  <webMaster>sitemaster@wpdfd.com</webMaster>
     <item>
    <title> Abby  said:</title>
    <link>http://www.wpdfd.com/forums/wpdfd/layout/setting_div_to_attach_to_bottom_of_any_screen/#p2099</link>
    <description><![CDATA[Hey everyone. I just started how to learn how to use div to make layouts. Currently, I am building this site: <a class="external" href="http://www.msu.edu/~estockab/snd/snd.html">http://www.msu.edu/~estockab/snd/snd.html</a> and I&#39;m having some problems.<br />
<br />
First of all, the formatting is all wrong in Internet Explorer (I use Firefox). So any assistance along those lines would be helpful, as I am not 100% comfortable with my code as it is and I&#39;m not really sure what to change to make it IE compatible.<br />
<br />
Second, and more importantly, I wanted to set the container div (the the black div that contains everything else on the page) to run down the middle of the entire page. Right now, it stops after the banner on the top. How can I make it go down the bottom no matter what the screen resolution? I already set the frame on the right to do the same by using the following code on my frame:<br />
<br />
border:0px;<br />
position:absolute;<br />
<br />
But when I do the same to my container div, it ruins the entire formatting. Any suggestions?<br />
<br />
Thank you!<br />
<br />
Abby<br />
<br />
]]></description>
    <pubDate>10/02/07, 275 30 2007 2007:%i:1191375029 20:30:29</pubDate>
    <guid>http://www.wpdfd.com/forums/wpdfd/layout/setting_div_to_attach_to_bottom_of_any_screen/#p2099</guid>
   </item>
     <item>
    <title>Marat Bandemer said:</title>
    <link>http://www.wpdfd.com/forums/wpdfd/layout/setting_div_to_attach_to_bottom_of_any_screen/#p2100</link>
    <description><![CDATA[Hi, Abby,<br />
<br />
I&#39;m relatively new to CSS as well, but after looking at your code, I believe it was the way the two browsers treat the iframe that was causing the problems in layout.  Insofar as the black going to the bottom, just create a graphic oh, 1600 pixels wide by one high and paint the part you want black, then set it as a background with: background url (name.ext) repeat fixed;<br />
<br />
I&#39;m attaching my version of your CSS (as a text file)--I got rid of the iframe and tweaked a few things and got the two browsers really, really close (I also set header specs in CSS, as IE and FF create default sizes much differently).<br />
<br />
Just get rid of the iframe in your index and all should be better.<br />
<br />
Hope this helps.  If there are any other things we can puzzle out together, let me know at mmband54@gmail.com.<br />
<br />
Marat]]></description>
    <pubDate>10/02/07, 275 20 2007 2007:%i:1191385210 23:20:10</pubDate>
    <guid>http://www.wpdfd.com/forums/wpdfd/layout/setting_div_to_attach_to_bottom_of_any_screen/#p2100</guid>
   </item>
     <item>
    <title> Abby  said:</title>
    <link>http://www.wpdfd.com/forums/wpdfd/layout/setting_div_to_attach_to_bottom_of_any_screen/#p2102</link>
    <description><![CDATA[Thanks Marat! Some of your CSS really helped with bridging the Firefox/IE gap. I&#39;m almost there! But I&#39;m still having some problems.<br />
<br />
I&#39;ve been constantly tweeking for a week and a half or so. And right now, I&#39;ve got it looking perfect in Firefox (but only for my screen resolution -- 1680 x 1050).<br />
<br />
I&#39;m sort of stubborn because I really want to keep the iframe. Especially since I&#39;m so close to perfecting it with it there. And I&#39;m pretty sure it&#39;s not posing any issue right now (except for being able to format it in IE).<br />
<br />
The only thing now (in Firefox) is centering the container div to any screen resolution. I&#39;ve researched this and apparently  margin-left:auto; margin-right:auto is supposed to do that. But I&#39;ve tried and it only sticks on the left side when I do that. Right now the left is set at 25% because that works with my resolution but I&#39;d like it to be universally centered. I&#39;ve also read that sometimes putting text-align:center in the body css and then text-align:left in the container div does this, but it doesn&#39;t really and screws up everything in IE.<br />
<br />
Further, I&#39;m still struggling in getting it to look the same if not as close as possible in IE. Attaching the container div (and the iframe) to the bottom of the screen with the position:absolute; bottom:0px (or 20 for the iframe) will not work in IE and I cannot figure out why the iframe has a left to right scroll bar as well.<br />
<br />
Sorry this is so long winded. Any help is appreciated. Thanks.<br />
<br />
Oh, and here is the new link: <a class="external" href="http://www.msu.edu/~estockab/snd/snddiv.html">http://www.msu.edu/~estockab/snd/snddiv.html</a>]]></description>
    <pubDate>10/08/07, 281 59 2007 2007:%i:1191855543 09:59:03</pubDate>
    <guid>http://www.wpdfd.com/forums/wpdfd/layout/setting_div_to_attach_to_bottom_of_any_screen/#p2102</guid>
   </item>
     <item>
    <title>Cesar Perez said:</title>
    <link>http://www.wpdfd.com/forums/wpdfd/layout/setting_div_to_attach_to_bottom_of_any_screen/#p2131</link>
    <description><![CDATA[Hi Abby,<br />
<br />
After researching a little, I played around on the page with the Web Dev toolbar and I think I have a fix for your CSS.  Take a look at <a href="http://upload.coffeecup.com/users/cesar/sndcssdiv.txt" class="external">this file</a> and let me know if it&#39;s what you&#39;re looking for.<br />
<br />
I was able to center all the content within the browser using margin:0 auto; and thereby get rid of your background image.  Then I used height and min-height rules to keep the container div the same height as the browser.  I didn&#39;t get a chance to check it in IE, but with the better support IE7 provides you shouldn&#39;t have too much to work around.<br />
<br />
EDIT: fixed the link]]></description>
    <pubDate>10/30/07, 303 55 2007 2007:%i:1193759700 10:55:00</pubDate>
    <guid>http://www.wpdfd.com/forums/wpdfd/layout/setting_div_to_attach_to_bottom_of_any_screen/#p2131</guid>
   </item>
   </channel>
</rss>