OZONE Asylum
FAQ
How do I get the contents of my webpage hard up against the side and top of the browser?
This page's ID:
5004
Search
QuickChanges
Forums
FAQ
Archives
Register
You are editing "How do I get the contents of my webpage hard up against the side and top of the browser?"
Who can edit an FAQ?
Anyone registered may edit an FAQ.
Your User Name:
Your Password:
Login Options:
Remember Me On This Computer
Your Text:
Insert Slimies »
Insert UBB Code »
Close
Last Tag
|
All Tags
UBB Help
Most modern browsers will accept the following CSS: [code] body { margin: 0; padding: 0; } [/code] [b]Note:[/b] padding is required as Opera also adds padding to the page However, this will not work properly in older browsers (NS4.x and old versions of IE) and so if you want to make your page work for those browsers you'll need this extra code: [code] <body leftmargin="0" rightmargin="0" topmargin="0" bottommargin="0" marginheight="0" marginwidth="0"> [/code] [b]Note:[/b] left/right/top/bottommargin are for IE and marginheight/width are for NS. ------------------- Relevant threads: [url=http://www.ozoneasylum.com/20436]Layout without runing border color of background?[/url] [url=http://www.ozoneasylum.com/20507]Table padding-spacing problems?[/url] ____________________ [internallink=4626]Emperor[/internallink] [small][i](Added by: [url=http://www.ozoneasylum.com/cgi-bin/ubbmisc.cgi?action=getbio&UserName=Emperor]Emperor [/url] on Fri 24-May-2002)[/i][/small] [small][i](Edited by: [url=http://www.ozoneasylum.com/cgi-bin/ubbmisc.cgi?action=getbio&UserName=Emperor]Emperor [/url] on Fri 24-May-2002)[/i][/small] [small][i](Edited by: [url=http://www.ozoneasylum.com/cgi-bin/ubbmisc.cgi?action=getbio&UserName=HZR]HZR [/url] on Fri 08-Nov-2002)[/i][/small] [small](Edited by [url=http://www.ozoneasylum.com/user/5575]reisio[/url] on 07-11-2006 12:52)[/small]
Loading...
Options:
Enable Slimies
Enable Linkwords
« Backwards
—
Onwards »