Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
  1. #1
    New Coder
    Join Date
    Dec 2005
    Posts
    18
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Table not appearing at top of page.

    I am working on a website at www.danbeckett.co.uk/odg2 , which involves iframes, but my table on the right of the page isn't appearing at the top of the frame, it looks as if there is a <br > above the table.

    When I did this site originally (went ahead and deleted the wrong folder, now I have to do it all again :/) I didnt have a problem, but I didn't use much CSS, could this be why?

    Here is my code:

    Code:
    <html>
    <head>
    <link rel="stylesheet" type="text/css" href="right.css">
    </head>
    <body>
    <table height="100%" width="100%" cellpadding="0" cellspacing="0" margin="0" border="0">
    <tr>
    <td width="100%">
    <div class="title">
    {OnlyDancingGirls}
    </div>
    </td>
    </tr>
    <tr>
    <td height="*" valign="center">
    <div class="maintext">
    <a href="news.php" target="content">
    	<span class="first"><span class="pink">x.</span> News</span>
    	<span class="second">x. <span class="pink">News</span></span>
    </a><br>
    <a href="#" target="content">
    	<span class="first"><span class="pink">o.</span> Newsletter</span>
    	<span class="second">o. <span class="pink">Newsletter</span></span>
    </a><br>
    <a href="live.php" target="content">
    	<span class="first"><span class="pink">x.</span> Upcoming Gigs</span>
    	<span class="second">x. <span class="pink">Upcoming Gigs</span></span>
    </a>
    </div>
    </td>
    </tr>
    <tr>
    <td height="1" bgcolor="fd5be4">
    </td>
    </tr>
    </table>
    </body>
    </html>
    If anyone could help me sort this out I would be most grateful

    Thanks - Dan

  • #2
    Senior Coder
    Join Date
    Jun 2002
    Location
    The Netherlands, Baarn, Ut.
    Posts
    4,252
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Body margins/padding

    Add this rule to your style sheet:
    Code:
    body {
    margin: 0;
    padding: 0;
    }
    That should sort it.
    Regards,
    Ronald.
    ronaldvanderwijden.com


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •