HTML Programming
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsWeb DesignHTML Programming

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old October 16th, 2000, 02:33 PM
dufuz dufuz is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Oct 2000
Posts: 2 dufuz User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Send a message via ICQ to dufuz
Hi.
I'm working on a page where I need to remove all body margins on the page. I've set topmargin, leftmargin and so on in the body-tag, but no matter what I do, I can't get rid of the right and bottom margin... This is my HTML-code:

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<head>
<title>Margin test</title>
</head>
<body topmargin="0" leftmargin="0" marginwidth="0" marginheight="0">
<table border="1" cellspacing="0" cellpadding="0" width="100%" height="100%">
<tr>
<td width="100%" height="100%">Test</td>
</tr>
</table>
</body>
</html>

As I said, no matter what I do, the table won't reach the right and bottom border of the browser, but I get a margin of about 5-10 pixels...

Anybody got any nice suggestions for me? URL

Reply With Quote
  #2  
Old October 18th, 2000, 04:48 AM
paul gadsdon paul gadsdon is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Oct 2000
Posts: 13 paul gadsdon User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
The cross browser compatible code to remove the margins is

topmargin=0 leftmargin=0 marginheight=0 marginwidth=0

Paul

Reply With Quote
  #3  
Old October 18th, 2000, 04:51 AM
paul gadsdon paul gadsdon is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Oct 2000
Posts: 13 paul gadsdon User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Sorry didnt notice that you havfe the right code. Try it with the table border set to 0,
ive just used your code and works fine

Reply With Quote
  #4  
Old October 18th, 2000, 04:53 AM
dufuz dufuz is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Oct 2000
Posts: 2 dufuz User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Send a message via ICQ to dufuz
Yeah, I figured that out myself...
The weird thing was, with a table with one row/cell, the table didn't reach all the way to the right and all the way down... But when I got some more cells and rows in that table, it worked out OK... Don't ask me why, I'm just smiling 'cause it works URL

Reply With Quote
Reply

Viewing: Dev Shed ForumsWeb DesignHTML Programming > Body margin in Netscape


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 3 hosted by Hostway
Stay green...Green IT