logo-dw

Go Back   Dreamweaver Club Forums > Hand Coders Forum > HTML and CSS
Register FAQ Members List Search Today's Posts Mark Forums Read

Reply
 
Thread Tools Display Modes
Old 04-09-2010, 07:02 AM   #1
dropaduce
 
Join Date: Apr 2010
Posts: 5
Question Centered in Firefox not in IE??

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.

Code:
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!
dropaduce is offline   Reply With Quote
Old 04-09-2010, 03:24 PM   #2
domedia
Administrator
domedia's Avatar
 
Join Date: Dec 2003
Posts: 9,730
Default

Not entirely right, look at this.

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

HTML Code:
<body>
<div id="wrapper">
Content
</div>
</body>
Code:
body {
text-align: center;
margin: 0;
}
#wrapper {
width: 500px;
text-align: left;
margin: 0 auto;
}
domedia is offline   Reply With Quote
Old 04-09-2010, 09:03 PM   #3
dropaduce
 
Join Date: Apr 2010
Posts: 5
Default

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 is offline   Reply With Quote
Old 04-09-2010, 09:13 PM   #4
dropaduce
 
Join Date: Apr 2010
Posts: 5
Default

Just figured it out. Disregard my previous post.
dropaduce is offline   Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 07:50 AM.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2017, vBulletin Solutions, Inc.
Copyright 2006 DreamweaverClub.com