How do I remove this border around my page?

Discussion in 'HTML & Website Design' started by mistermix, Aug 18, 2006.

  1. #1
    Help needed.

    I've used the following code on my web site:

    <TABLE cellPadding=0 cellspacing=0 width="100%" height="120" bgColor=#3399fF border=0><TBODY><TR border="0">
    <TD>
    </TD></TR></TBODY></TABLE>


    ..and it produces something like this:

    [​IMG]


    How do I remove the border that appears around the edge of the page?

    Thanks in advance.
     
    mistermix, Aug 18, 2006 IP
  2. sgtsloth

    sgtsloth Peon

    Messages:
    205
    Likes Received:
    7
    Best Answers:
    0
    Trophy Points:
    0
    #2
    try putting this in your css file:
    
    html, body{
    padding:0;
    margin:0;
    }
    
    Code (markup):
    Or, if you don't have a css file, just put this in between your head tags:

    
    <style type="text/css">
    html, body{
    padding:0;
    margin:0;
    }
    </style>
    
    Code (markup):
     
    sgtsloth, Aug 18, 2006 IP
  3. mistermix

    mistermix Active Member

    Messages:
    2,326
    Likes Received:
    85
    Best Answers:
    0
    Trophy Points:
    90
    #3
    Thank you very much. It worked a treat.
     
    mistermix, Aug 18, 2006 IP