how do it get rid of the white border?

Associate
Joined
2 Jan 2005
Posts
2,441
Location
West Midlands
i want the top menu and the rest to touch the edge of the window, i can't figure how to get rid of it. i used " cellpadding="0" cellspacing="0" " and it doesnt work.


this white border:
untitled.JPG




<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD><TITLE></TITLE>
<META content="" name=description>
<META content="" name=keywords>
<META http-equiv=Content-Type content="text/html; charset=utf-8">
<META content="Microsoft FrontPage 5.0" name=GENERATOR></HEAD>
<BODY text=#f8f8f8 bgColor=#f8f8f8 scrolling=no>
<STYLE type=text/css>A {
TEXT-DECORATION: none
}
A:hover {
TEXT-DECORATION: underline
}
</STYLE>
<style type="text/css">
<!--
body { overflow:hidden; }
-->
</style>



<STYLE type=text/css>A {
TEXT-DECORATION: none
}
</STYLE>


<TABLE id=frame style="BORDER-COLLAPSE: collapse" borderColor=#c0c0c0 height=100% width=100% border=0 >
<TBODY>
<TR>
<TD align=middle width=91 bgColor=#efefef height=18><B><A
href="index_home_files/college.htm" target=frame><FONT face=Arial
color=#808080 size=1>COLLEGE</FONT></A></B></TD>
<TD align=middle width=91 bgColor=#efefef height=18><B><A
href="index_home_files/uni_files/uni.htm" target=frame><FONT
face=Arial color=#808080 size=1>PORTFOLIO</FONT></A></B></TD>
<TD align=middle width=91 bgColor=#efefef height=18><B><A
href="index_home_files/photography_files/photography.htm" target=frame><FONT
face=Arial color=#808080 size=1>PHOTOGRAPHY</FONT></A></B></TD>
<TD align=middle width=91 bgColor=#efefef height=18><B></FONT></B></TD>
<TD align=middle width=91 bgColor=#efefef height=18><B></B></TD>
<TD align=middle width=91 bgColor=#efefef height=18><B></B></TD>
<TD align=middle width=91 bgColor=#efefef height=18><B></B></TD>
<TD align=middle width=91 bgColor=#efefef height=18>&nbsp;</TD></TR>
<TR>
<TD vAlign=top colSpan=8 width="803"><IFRAME border=0 name=frame
src="index_home_files/photography_files/photography.htm" frameBorder=0 width="100%"
height="100%">
Your browser does not support inline frames or is currently configured not to display inline frames.</IFRAME></TD></TR>
<TR>

</TBODY></TABLE>
 
Wack this in the top of your CSS.
Code:
*, html, body{margin: 0; padding: 0;}

Edit: This does reset the default padding and margin for all the elements in your page. So you'd have to set each one manually after using this rule. It does make development easier IMO, though.
 
Last edited:
Back
Top Bottom