Need help centering horizontally a Dreamweaver layered web page on the screen

Posted on 2007-10-17
Last Modified: 2010-04-25
Without re-doing the whole website inside a table, is there a way to make a Dreamweaver site center horizontally regardless of viewer's resolution setting?  I've read other similar posts and the best suggestion is building inside a 100% x 100% table.  I unfortunetly built the site with layers so is it still possible to center my layered site horizontally?  Thanks for any help.
Question by:DJWhitlock
    LVL 18

    Accepted Solution

    Hi.  Just after your <head> tag, add a <div align="center"> and add a </div> just before the last </body> tag.  This should bind all your layers with a center aligned div, but if they are stuck to the hard left, I.e. absolutely positioned, you may have to update absolute to relative so that they take on a position from the centered div.  If necessary, also add a width to the center div so that they are correctly aligned up.  I suggest working on a backup copy of your site first, and ensuring that the changes 'take' before uploading.  Hope this helps.

    Author Comment

    That did the triick, THANKS!  I just had to do some adjusting regarding every div tags relative cooridinates and it slowly straightend out in the middle of the screen.  You Rock, points well earned!  Thanks again.
    LVL 18

    Expert Comment

    Hi DJ, pleased to hear that you were able to resolve your issues.  Have a great day and thanks for the points.

    Featured Post

    Looking for New Ways to Advertise?

    Engage with tech pros in our community with native advertising, as a Vendor Expert, and more.

    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 …
    This article is very specific and is only intended to help if you are installing Dreamweaver 8 in a Windows 7 environment with Office 2007 installed.   I'm not sure why Microsoft tends to release OS' that should not be released but they do.  Windows…
    how to add IIS SMTP to handle application/Scanner relays into office 365.
    Sending a Secure fax is easy with eFax Corporate ( First, Just open a new email message.  In the To field, type your recipient's fax number You can even send a secure international fax — just include t…

    729 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

    19 Experts available now in Live!

    Get 1:1 Help Now