Question:

Webpage is not centered probably with FireFox, what is the problem?

by  |  earlier

0 LIKES UnLike

http://www.pupsrus.ca/index.html

If viewing this in FireFox the page is not centered, can someone tell me what the problem is?

 Tags:

   Report

1 ANSWERS


  1. You have a Doctype that triggers Quirks mode. Among the side effects of this is that Internet Explorer gets "width" wrong (it puts padding inside the width). You are depending on this to centre the element.

    Steps to rectify (and improve other aspects of the page while you're at it):

    1. Change Doctype to one that triggers standards mode

    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"

       "http://www.w3.org/TR/html4/strict.dtd">

    2. Validate and correct the machine detectable errors

    http://validator.w3.org/

    3. Use CSS to centre

    http://dorward.me.uk/www/centre/

Question Stats

Latest activity: earlier.
This question has 1 answers.

BECOME A GUIDE

Share your knowledge and help people by answering questions.