Hexagora Forum
Hexagora Forum
Home | Profile | Active Topics | Members | Search | FAQ
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 Dynamic HTML Editor
 Dynamic HTML Editor
 Page size
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

cofrpayne
Novice

2 Posts

Posted - 13 Apr 2005 :  17:55:25  Show Profile  Visit cofrpayne's Homepage  Reply with Quote
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.

s.dav
Site Admin

Italy
3364 Posts

Posted - 14 Apr 2005 :  08:39:23  Show Profile  Visit s.dav's Homepage  Reply with Quote
You have to make your site at the least resolution possible and center it

Regards, Davide
Go to Top of Page

dsg1969
Novice

2 Posts

Posted - 16 Apr 2005 :  21:38:39  Show Profile  Visit dsg1969's Homepage  Reply with Quote
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


Scott Gilbert
Go to Top of Page

Martin1
Super User

Netherlands
626 Posts

Posted - 17 Apr 2005 :  01:52:02  Show Profile  Reply with Quote
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
Go to Top of Page

s.dav
Site Admin

Italy
3364 Posts

Posted - 21 Apr 2005 :  21:36:37  Show Profile  Visit s.dav's Homepage  Reply with Quote
Great Martin!

Regards, Davide
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
Hexagora Forum © s.dav Go To Top Of Page
Snitz Forums 2000