How do I centre my webpage?

Posted on 2005-04-11
Last Modified: 2010-04-25
Hello everyone,

I have noticed that on some computer screens (with a smaller set resolution - am I explaining this correctly? - I mean everything appears smaller), my webpages appear smaller and as such, to the left of the screen. I have noticed with professional sites, the page usually appears in the middle of the screen.

My question is how do I change my page so it will appear in the middle of the screen, when being viewed through a set resolution PC which makes the page seem smaller? I have tried messing around with autostrech and spacer images,  but I clearly have no idea what I am doing. I have a feeling that it's not too difficult, but that's no comfort as I don't know what to do.

Many thanks in advance,

Question by:ayounis
    LVL 23

    Accepted Solution

    Right After the Body Tag Add <Div Align="Center">
    And Right before the </Body> Tag Close it </Div>

    Author Comment


    Many thanks Adikhan.

    Have a great day.
    LVL 23

    Expert Comment

    My Pleasure:)

    Featured Post

    Highfive Gives IT Their Time Back

    Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

    Join & Write a Comment

    I still run into .cgi files every now and then. In some instances, I actually prefer the simplicity of a .cgi script to other options. Since I use DreamWeaver extensively, what I needed was a way to open .cgi scripts in Dreamweaver. And I wanted to …
    Adobe Dreamweaver CS5 is a WYSIWYG web page editor that has advanced HTML, CSS, and Javascript rendering functionality and is probably the most well-known HTML editor available. Much of Dreamweaver's appeal centers around the Design View interfac…
    In this sixth video of the Xpdf series, we discuss and demonstrate the PDFtoPNG utility, which converts a multi-page PDF file to separate color, grayscale, or monochrome PNG files, creating one PNG file for each page in the PDF. It does this via a c…
    In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…

    746 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    15 Experts available now in Live!

    Get 1:1 Help Now