[Webinar] Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 171
  • Last Modified:

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

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.
0
DJWhitlock
Asked:
DJWhitlock
  • 2
1 Solution
 
Mark GilbertSenior Performance EngineerCommented:
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.
0
 
DJWhitlockAuthor Commented:
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.
0
 
Mark GilbertSenior Performance EngineerCommented:
Hi DJ, pleased to hear that you were able to resolve your issues.  Have a great day and thanks for the points.
0

Featured Post

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now