Forum Moderators: phranque

Message Too Old, No Replies

site justification in browser window

         

adproducts

3:41 pm on Jan 19, 2006 (gmt 0)

10+ Year Member



sorry for the obvious rookie question but I have Dream weaver MX 2004 and I have been working with existing pages on our site. How can I get the page to appear "centered" in the browser window? currently, it appears as a left justified position and I would like it to move to the center.

also, how can you make a page fill up the entire screen regardless of the resolution without having to scroll left and right in Dream weaver?

once again, sorry for the basic questions but I am stumped. thanks in advance for the info.

kamakaze

5:08 pm on Jan 19, 2006 (gmt 0)

10+ Year Member



This is where hand coding HTML come in :-)

From what you are asking it sounds like you have a page that is composed of a series of tables. The table widths are probably set to a fixed size rather than a percentage.

To center it add this to your main <table> tag:

align="center"

To make your page fill the full screen change your table widths to percentages like 100% for example rather than a fixed value like 750.

adproducts

6:08 pm on Jan 19, 2006 (gmt 0)

10+ Year Member



thanks for the info. I am familiar with centering info inside a cell or table... I wanted to know how to center the whole page in the browser window. I don't know if I am exlaining myself correctly.

Beagle

8:58 pm on Jan 19, 2006 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



The thing with centering the table is that you not only have to center what's inside the cells, but you also have to center the entire table itself on the page. I've never used Dreamweaver, so I don't know if it gives you a way to do that without handcoding, but I bet it does. Or use the code kamakaze posted. Note that it goes into the table tag -- that's because it centers the entire table, not just what the table contains.

Using percentage instead of pixels is what keeps things under control at different screen resolutions. A table set at 750 pixels will be 750 pixels wide no matter what the screen resolution is. A table set with a percentage will take up a percentage of the display width instead of a fixed size, so will better accommodate itself to various resolutions.