What is the difference?

Discussion in 'CSS' started by rolandvvv, Nov 10, 2007.

  1. #1
    Hey,

    I have a header page that I load into each page with php.. when I view the header by itself, it is perfect.. there are no spaces or anything, but when I include it on a different page it adds weird spaces.. does anyone have any idea why it does this and how I can fix it?

    Header page: http://www.brandonbarnes.us/ssfd/header.html

    Page with included header: http://www.brandonbarnes.us/ssfd/index.php

    Thanks for any help!

    --Brandon
     
    rolandvvv, Nov 10, 2007 IP
  2. Dan_A

    Dan_A Peon

    Messages:
    65
    Likes Received:
    6
    Best Answers:
    0
    Trophy Points:
    0
    #2
    It may do it because your HTML code is not valid.
    Validate the code and if it doesn't fix the issue, add
    #header img{vertical-align:bottom;} in your css.
     
    Dan_A, Nov 11, 2007 IP
  3. deathshadow

    deathshadow Acclaimed Member

    Messages:
    9,732
    Likes Received:
    1,999
    Best Answers:
    253
    Trophy Points:
    515
    #3
    Uhm, you close your HTML in the header.html - you shouldn't do that in an include... one look at the output from the .php gives it away right quick.

    	<img src="images/shadow.jpg" alt="shadow" />
    </div>
    </body>
    </html>
    <div id="content">
    <div id="leftColumn">
    Code (markup):
    Uhm, do we see a problem here?
     
    deathshadow, Nov 11, 2007 IP