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 to the CF scene
    Join Date
    Dec 2010
    Posts
    4
    Thanks
    2
    Thanked 0 Times in 0 Posts

    Space between DIV with PHP include

    Hi I posted a threat not so long a go but can't get this sorted
    I need help with the site I am building work fine but if use the php include for header, navigation and footer I get a space between the div see http://www.eczemasoap.co.uk/index1.php
    css file look like this

    /* CSS Document */
    body {background-color:#999999;}
    .container {margin:0 auto;
    width:756px;}
    .header { background-color:#FFFFFF; height: 65px; margin:0;}
    #topnavigation {
    font-family:Tahoma;
    font-size:12px; background-color:#996600;}
    #topnavigation ul {
    list-style: none;
    margin:0;
    padding:0;
    padding-top:0;
    }
    #topnavigation li {
    display: inline;
    }
    #topnavigation a: link, #topnavigation a:visited
    { padding: 3px 10px 2px 10px;
    color:#FFFFFF;
    background-color: #CC6600;
    text-decoration: none;
    }
    #topnavigation a: hover
    { color:#FFFFFF;
    background-color:#CC6600;}

  • #2
    Master Coder Excavator's Avatar
    Join Date
    Dec 2006
    Location
    Alaska
    Posts
    9,748
    Thanks
    22
    Thanked 1,838 Times in 1,822 Posts
    Hello Claude and Celeste,
    You should check your code with the validator. <link href="eczemasoap.css" rel="stylesheet" type="text/css"> does not belong in the body of your document.

    See the links about validation, and the suggestion to use it often, in my signature line below.



    .
    Validate often DURING development - Use it like a splelchecker | Debug during Development |Write it for FireFox, ignore IE
    Use the right DocType | Validate your markup | Validate your CSS | Why validating is good | Why tables are bad


  •  

    Posting Permissions

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