• 0

Why on earth won't IE centre this?


Question

5 answers to this question

Recommended Posts

  • 0

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

  • 0

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

  • 0

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

This topic is now closed to further replies.
  • Recently Browsing   0 members

    • No registered users viewing this page.