- This topic is empty.
Viewing 4 posts - 1 through 4 (of 4 total)
Viewing 4 posts - 1 through 4 (of 4 total)
- The forum ‘CSS’ is closed to new topics and replies.
The forums ran from 2008-2020 and are now closed and viewable here as an archive.
I created a site with wordpress as a backend. It looks exactly the way I want in my Firefox (linux).
However it’s not right in IE.
Displayed correctly, my content is centered by means of a div "wrap" that wraps the entire site, using left and right margin to auto.
In IE, it doesn’t center, it butts the content to the left. Does IE not recognize margin: auto?
For brevity, only layout parts of CSS are listed
Link to live http://ronguilmet.com/sandbox/
* {margin: 0; padding: 0;}
body
{
/* */
background-color: #F6C21E;
}
/* WRAPS WHOLE SITE */
#wrap
{
width: 700px;
height: 100%;
margin-left: auto;
margin-right: auto;
background-color: white;
}
/* CONTENT DISPLAY */
.entry
{
padding: 20px;
}
#content
{
margin: 10px;
clear: both;
}
Odd. Try changing the margin on the wrap to:
margin: 0 auto;
yes it is odd to say the least, lol. it’s got me scratching my head.
I made those changes to the wrap, and still no change. checked the rendering at http://ipinfo.info/netrenderer/index.php.
works fine on my firefox, and google chrome
Thank you so very much.
that’s exactly what it was. I had the html tag above the doctype
I had
Moved it above it, and it works. thank you again.