![]() |
Center a page
I have a page on my site that is done with frames(I know frames are sorta ugly but it works well for this page) and it is scaled perfectly to fit an 800X600 screen. As I put the screen rez higher the page shrinks up to the upper right hand of the screen with lots of white space to the left, which is fine because it still looks the way I want it to. I was just wondering if there is a way to keep this page in the center of the browser no matter what screen rez it is? So if you have a high screen rez the page will appear smaller but will still be centered in the middle of the screen.
|
I never use frames, but maybe setting the width of the left and the right frame to "*" helps.
|
Quote:
|
[php]<div align="center">
... your stuff here ... </div>[/php] |
Yep, you can use <center> but it has been depreciated. Frames have also been depreciated as well. You should look into the HTML coding standards and CSS.
Check out: http://www.htmlhelp.com |
Deprecation is the process of phasing-out of a feature, usually gradually.
Depreciation is a decrease in value. |
It's pretty simple.
:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"Now, if someone could just point bja888 to this post, he might finally stfu... ;) --47. |
Quote:
Why do I have the feeling bja888 wouldn't know what that meant? Perhaps it's because his own webpage - meant to show off his talents as a "professional" programmer - doesn't even have a DTD... :p |
Quote:
b) "professional" programmer ? Welcome to the html area!! and just for good measure. Don't quote something someone never said. |
Quote:
Does it even register to you, that the level of respect to which you have inspired other members of this community is such that they even deride you posts to which you have yet to contribute? |
| All times are GMT -5. The time now is 4:58 PM. |
Powered by vBulletin® Version 3.7.0, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Copyright ©2007 DaniWeb® LLC