T O P I C R E V I E W |
cofrpayne |
Posted - 13 Apr 2005 : 17:55:25 I am wondering how to set my page size, what I mean is my res is set at 1152 X 864 and when I view my site it is centered in my browser but when I view at res 720 X 480 there is a scroll bar on the bottom of the page, and the page is no longer centered. So is there a way so that the site would be centered on all resolutions?
I hope this makes sense. |
4 L A T E S T R E P L I E S (Newest First) |
s.dav |
Posted - 21 Apr 2005 : 21:36:37 Great Martin! |
Martin1 |
Posted - 17 Apr 2005 : 01:52:02 If you are using Dynamic HTML Editor 2 you just go to the page properties and choose center Page.
If you use Dynamic HTML Editor 1.8 and your page has a width of approcimately 772 pixels (which will make it fit exactly on a 800x600 screenresolution) you need to add: <style type="text/css"> #centered { margin: 0px auto; width: 780px; position: relative } body { text-align: center } </style>
between teh head tags and: <div id="centered"> right after the opening body tag and: </div> right before the closing body tag.
All in all it would look something like this: <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <html> <head> <meta http-equiv="content-type" content="text/html;charset=iso-8859-1"> <title</title> <meta http-equiv="Content-Style-Type" content="text/css"> <style type="text/css"> #centered { margin: 0px auto; width: 780px; position: relative } body { text=align: center } </style> </head> <body> <div id="centered"> here comes the content of the site (all of it) </div> </body> </html>
Martin |
dsg1969 |
Posted - 16 Apr 2005 : 21:38:39 How do you center the entire page?
quote: Originally posted by s.dav
You have to make your site at the least resolution possible and center it
|
s.dav |
Posted - 14 Apr 2005 : 08:39:23 You have to make your site at the least resolution possible and center it |