CPressland Posted February 14, 2011 Share Posted February 14, 2011 Hey guys, Doing this: http://cpressland.com/rebuild/ Is not final design at all, only a template for ideas. My question is, why on earth is it not centred in IE8? I've been scratching my head for like two hours now which means it's clearly something very obvious! lol. Thanks Guys Chris Link to comment Share on other sites More sharing options...
0 +jamesyfx Subscriber² Posted February 14, 2011 Subscriber² Share Posted February 14, 2011 You have no Doctype, adding one should fix it. Link to comment Share on other sites More sharing options...
0 CPressland Posted February 14, 2011 Author Share Posted February 14, 2011 Yep, I knew it'd be something obvious! I need sleep! Thanks dude! Link to comment Share on other sites More sharing options...
0 TangoEight Posted February 14, 2011 Share Posted February 14, 2011 Adding this after the close head tag might help, works when the webpage was made in publisher 2007. Not something I'm proud of but the school computers aren't good. <table border="0" cellpadding="0" cellspacing="2" width="984"align="center"><tr><td> Replace "984" without quotes with the width of your page in pixels. T8 Link to comment Share on other sites More sharing options...
0 Cupcakes Posted February 14, 2011 Share Posted February 14, 2011 You can always run your pages through w3.org's validator to find mistakes in coding. Majority of the time this isn't going to help it render better but rather just clean up your code so that it's formatted correctly (which sometimes can cause rendering issues.) But yes, jamesy is spot on. Add a doctype. <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> Link to comment Share on other sites More sharing options...
0 CPressland Posted February 14, 2011 Author Share Posted February 14, 2011 Adding this after the close head tag might help, works when the webpage was made in publisher 2007. Not something I'm proud of but the school computers aren't good. <table border="0" cellpadding="0" cellspacing="2" width="984"align="center"><tr><td> Replace "984" without quotes with the width of your page in pixels. T8 Yeah, I'm coding from scratch, no tools being used at all. So that won't help. You can always run your pages through w3.org's validator to find mistakes in coding. Majority of the time this isn't going to help it render better but rather just clean up your code so that it's formatted correctly (which sometimes can cause rendering issues.) But yes, jamesy is spot on. Add a doctype. <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> Thanks for that, i'll be sure to run some of the pages through. Link to comment Share on other sites More sharing options...
Question
CPressland
Hey guys,
Doing this: http://cpressland.com/rebuild/
Is not final design at all, only a template for ideas. My question is, why on earth is it not centred in IE8? I've been scratching my head for like two hours now which means it's clearly something very obvious! lol.
Thanks Guys
Chris
Link to comment
Share on other sites
5 answers to this question
Recommended Posts