hello all can anybody tell me where i am going wrong? http://oilpriceupdates.com/ i want the content centered in IE like it does in netscape. have i missed a div? also the orange border stops too short on netsacpe. i thankyou for you time and would be grateful for any suggestions.
Im not sure what is the problem because I see the content centered in IE6 and IE7 But, I see you dont have a DOCTYPE specified at the beginning, this is often a reason why content wont centered with a margin: auto; css
Are you talking about IE6? I haven't looked on that yet, but IE7 is centered. I'll take a quick look. (And, make sure you have a doctype set, so the browser will know how to render it.) - EDIT: Oops - Just saw Camay123's post - Sorry!
hello thanks for the prompt replies. dead impressed. the 'wrapper' is centered in IE and netscape. it is the content in the wrapper(news boxes, google adverts), they are offside to the left in IE. thanks.
You shouldn't use <center> to center the page. It's an outdated tag. Instead, do this in your CSS-file: body { text-align: center; } and then the div you want centered: <div style="margin-left:auto;margin-right:auto;width:800px;"> content </div> That's the most common way to do it these days
you can also do <div align="center"> tag at the beggining at the html page and then the closing tag of course at the end.</div>
align="center" isn't in the xhtml standards. 1: It would not complete validation 2: Not all browsers might display it correctly