PDA

View Full Version : Centered in Firefox not in IE??


dropaduce
04-09-2010, 06:02 AM
Our site shows up just fine in Firefox (centered correctly) but it is aligned left and pushed down from the top of the browser rather than being flush with it in IE. You may need to review the site in both browsers to see what I'm talking about. I've included links at the bottom of this post.

I've tried the following code, though it does center the page the text is centered (which I don't want) and the top of the page still isn't flush with the top of the browser.

body { margin:0 auto; padding:0; width:100%; text-align:center; background:#252525}

Here is a link to our site: http://dropaduce.com/wild-ones-facebook-cheats.html
And the a link to the css: http://dropaduce.com/style.css

Thank you in advance!

domedia
04-09-2010, 02:24 PM
Not entirely right, look at this.

For more info, check our tutorial:
http://www.dreamweaverclub.com/css-center-content.php

<body>
<div id="wrapper">
Content
</div>
</body>

body {
text-align: center;
margin: 0;
}
#wrapper {
width: 500px;
text-align: left;
margin: 0 auto;
}

dropaduce
04-09-2010, 08:03 PM
Thank you. I was able to tweak the code you gave me and for the most part it is working correctly. Yet, still the top of the page in IE is not running flush with the top inside of the browser window.

Any suggestions?

Thanks again!

dropaduce
04-09-2010, 08:13 PM
Just figured it out. Disregard my previous post.