I would bet this would fall under the 'just let someone else look at it' they'll tell you the one semi colon or hyphen you forgot.... type of thing. However, I'm really racking my brain on this one.
I'm throwing together a new site... and I'm styling the blog...
I get it looking fine and dandy in FF (haven't checked Opera/Safari) but the #wrap element is not being centered properly in IE.
Here's my stylesheet, and a link if you wanna see it that way.
html, body, div, object, h1, h2, h3, h4, h5, h6, p, a, del, dfn, em, font, img, strong, b, u, i, center, ul, li, form, label { margin: 0; padding: 0; border: 0; outline: 0; font-size: 100%; font-weight: normal; vertical-align: baseline; background: transparent; }
body { line-height: 16px; text-align: center; background: #1b1a1a; color: #ccc; font-family: Georgia, \"Times New Roman\", Times, serif; font-size: 13px; }
#menuline ul li, #pictureselect li { float: right; list-style: none; } #menuline ul li a, #pictureselect li a { z-index: 8; float: left; position: relative; overflow: hidden; height: 22px; text-decoration: none; text-align: center; }
#button1 a, #button2 a, #button3 a, #button4 a, #button5 a {width: 75px;}
#menuline ul li a, #pictureselect li a {color: #fff;}
#menuline li.background { background: url(http://landonwisely.com/test/images/bg_menu_right.png) no-repeat top right !important; //filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(enabled=true, sizingMethod=image src='http://landonwisely.com/test/images/bg_menu_right.png'); background: url(http://landonwisely.com/test/images/bg_menu_right.gif) no-repeat top right; z-index: 8; position: absolute; visibility: hidden; margin-top:25px; }
#menuline .background .left { background: url(http://landonwisely.com/test/images/bg_menu.png) no-repeat top left !important; //filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(enabled=true, sizingMethod=image src='http://landonwisely.com/test/images/bg_menu.png'); background: url(http://landonwisely.com/test/images/bg_menu.gif) no-repeat top left; height: 1px; margin-right: 7px; }
http://landonwisely.com/blog
I toyed with the doctype thinking maybe I messed something up there, but I don't think that's it. I'm slightly sleep deprived, so perhaps that needs to be counted into the equation.
@edwin, I did actually design it myself (glad you like)
here's the whole image. It is a 2 year old design, that I don't toy with much, so it's a bit rough around the edges. http://landonwisely.com/test/images/starsalign/01.jpg
RE: the problem....
this is in the body selector of the css.
body {text-align: center;}
and text-aligning the #wrap left didn't change anything either.
I have looked at this in IE6 and it's not centering.
I'm really confused on this one, which is why I broke down and posted something here.
Not sure if this is the problem - but it certainly won't help - you are calling your stylesheet twice - once in a LINK and the other @import. Remove one of them and see what happens.
I don't have another answer yet, but when I look it now at a lower resolution and see there is a very long horizontal scroll (as well in firefox and safari), didn't see that before, because I was on a higher resolution. Maybe something is too wide (or something is floated?) and that could be the cause of the problem?
nope - a transitional doctype will often push ie6 to the left if you're relying on the margin:0 auto - in strict mode IE6 actually behaves itself for once and centres properly. The first thing I looked for was a transitional doctype as this often creates this problem. The problem in this case is the section of the CSS that I have highlighted. Thats what's throwing the centring off.
I'm throwing together a new site... and I'm styling the blog...
I get it looking fine and dandy in FF (haven't checked Opera/Safari) but the #wrap element is not being centered properly in IE.
Here's my stylesheet, and a link if you wanna see it that way.
http://landonwisely.com/blog
I toyed with the doctype thinking maybe I messed something up there, but I don't think that's it. I'm slightly sleep deprived, so perhaps that needs to be counted into the equation.
thanks in advance.
-my inner noob
An answer to your question:
you need to add text-align: center; to your body.
And important, after that you add text-align: left; again to your page-wrap, to align the text left again:
here's the whole image. It is a 2 year old design, that I don't toy with much, so it's a bit rough around the edges.
http://landonwisely.com/test/images/starsalign/01.jpg
RE: the problem....
this is in the body selector of the css.
body {text-align: center;}and text-aligning the #wrap left didn't change anything either.
I have looked at this in IE6 and it's not centering.
I'm really confused on this one, which is why I broke down and posted something here.
sadly, still no dice.
#sidebar li h2 {font-size:1.6em;
font-weight:normal;
margin:0pt;
width:1339px;
}
This is the problem - I assume it should read width:139px?
Maybe try transitional?
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
The problem in this case is the section of the CSS that I have highlighted. Thats what's throwing the centring off.
you're right. wow. I probably would have spent days digging and not found that.
big thanks. i guess my oafish fingers hit the 3 one time too many.
again, big.big. thanks.