margin-bottom not working in IE
3 December 2008
2,093 views
3 Comments
if you place a div with margin-bottom:20px; IE would not show the margin at all if you do not flush the div to the bottom of the document(when content filled).
#content {background-color:#000;font-size:1px;margin-left:0;margin-right:0;margin-top:50px;margin-bottom:20px; }
This is the css style for the div.
To flush the div to the bottom of the document, use this style as well:
body {margin-bottom:0;}
Guess what just this won’t work either.
.clear1 { height:1px;font-size:1px;padding:0;clear:left; }
Use <div class=”clear1″> </div> at the very end of the page.
That should do.










thanks for the info,,nice post its great!
Wow! Worked great in both IE and FF. Thanks.
Thanks!!! It is great, thank you very much.!!!!!
Leave your response!
Categories
Most Commented
Blogroll
Most Viewed