Help! Tables have a mind of their own....

Discussion in 'HTML & Website Design' started by mborland, May 11, 2008.

  1. #1
    Hi all! I've been a long-time lurker here, but never actually come across a problem that I wasn't able to solve myself.... until now. Hopefully you guys can help me out.

    My website: www.musclegainguide.com
    My external stylesheet: www.musclegainguide.com/style.css

    I was uploading some new pages last night, but I made no changes to the 'header' portion of the page (it's a separate PHP include). In fact I haven't touched anything 'important' at all.

    But somehow last night as I was uploading something, all of a sudden the top of the table the page moved down about 25px... you'll notice that the header is not flush with the top of the page, despite margins of "0" all around. It used to line up with the top of the browser. :mad: I've checked and re-checked the code and I simply cannot figure out why it's sitting down like that.... I want it to go back to being 'marginless' at the top! Can anyone see what the problem is?

    Thanks in advance!! :D
     
    mborland, May 11, 2008 IP
  2. phish3rz

    phish3rz Peon

    Messages:
    98
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #2
    I dont think its anything to do with the external CSS sheet, i think it maybe something to do with the index.php you have, if you could post us to a document with the source code in there i could take a look as you cant view php through view source. :)
     
    phish3rz, May 11, 2008 IP
  3. mborland

    mborland Peon

    Messages:
    5
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #3
    There's no real PHP, just server side includes. So basically when you view source, that's the extent of the code :) ... nothing else hidden, other than the actual includes themselves, for example:

    <?php
    include ("top2.html");
    ?>

    PS. I figured it wasn't the external stylesheet but I just wanted to provide it to be 100% certain.

    Thanks!
     
    mborland, May 11, 2008 IP
  4. mborland

    mborland Peon

    Messages:
    5
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #4
    Anyone? :(
     
    mborland, May 11, 2008 IP
  5. TechnoGeek

    TechnoGeek Peon

    Messages:
    258
    Likes Received:
    6
    Best Answers:
    0
    Trophy Points:
    0
    #5
    Just take out the <BR> that you have before the table.
    Good luck.
     
    TechnoGeek, May 11, 2008 IP
  6. mborland

    mborland Peon

    Messages:
    5
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #6
    Maybe I'm blind, but I don't see any <br> anywhere. Here's the code for the top of my page:

    <!-- Begin "Title" -->

    <html>
    <head>
    <title>Build Muscle and Gain Weight Fast | Muscle Gain Guide</title>
    <meta name="description" content="Muscle building, weight gain and fat loss information and articles. Also featuring bodybuilding product and program reviews, muscle blog, and much more.">

    <!-- End "Title" -->

    <!-- Begin "Top" -->

    <link rel="stylesheet" type="text/css" href="http://www.musclegainguide.com/style.css" />

    <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"><style type="text/css">
    <!--
    body {
    margin-left: 0px;
    margin-top: 0px;
    margin-right: 0px;
    margin-bottom: 0px;
    }
    -->
    </style></head>
    <body>
    <table width="791" border="0" align="center" cellpadding="0" cellspacing="0">
    <tr>
    <td><img src="http://www.musclegainguide.com/images/header-top.jpg" alt="Muscle building and weight gain information" width="791" height="147"></td>
    </tr>
    <tr>
     
    mborland, May 11, 2008 IP
  7. mborland

    mborland Peon

    Messages:
    5
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #7
    PROBLEM SOLVED!!! Turns out you were right, it was all caused by a "<BR>" that was actually located in the BOTTOM portion of the page, but obviously still affected the table as a whole.

    Thanks for the help!!!
     
    mborland, May 11, 2008 IP