Setting Browser Margins

From Visual Basic to GNU C, this is the place to talk programming.

Moderators: SecretSquirrel, just brew it!

Setting Browser Margins

Postposted on Mon Aug 04, 2003 5:10 am

Im creating a web page for my local fire authority to be viewed on their intranet, and for reasons i wont go into i have to use frontpage.

Ive created the basic framework and navigation of the site - a left side frame containing a flash navbar, a top page frame displaying the fire authority logo and a main body frame that will display the info linked from the navbar. However, when i preview this in IE the page displays correctly but not as i want it. Instead of the entire page being spread out across the maximum possible display area, i would like there to be a margin on both sides of the page, and possibly a border on the outer edges of the margins to hold the page inside.

Any ideas how to go about doing this? Your help would be greatly appreciated :wink:

EDIT:- The page layout in Download.com is a good example of what im trying to achieve
Tech
Gerbil Elite
 
Posts: 529
Joined: Mon Mar 10, 2003 6:58 pm
Location: Great Britain

Postposted on Mon Aug 04, 2003 6:37 am

If you right-click>view source on the download.com front page, you will see the HTML code for it:

body leftmargin="10" topmargin="10" bgcolor="#e5e5e5"
div align="center"

table width="750" cellpadding="0" cellspacing="0" border="0"

Use a fixed table width instead of a 100% table width. If you want the table flush with the top of the screen, use a topmargin of "0".
NeXus 6
Minister of Gerbil Affairs
 
Posts: 2569
Joined: Thu Dec 27, 2001 7:00 pm

Postposted on Mon Aug 04, 2003 9:08 am

go here and read:

http://www.htmlgoodies.com/
Image
thegleek
Darth Gerbil
Gold subscriber
 
 
Posts: 7359
Joined: Tue Jun 10, 2003 11:06 am
Location: Detroit, MI


Return to Developer's Den

Who is online

Users browsing this forum: No registered users and 3 guests