...

View Full Version : Space between DIV with PHP include



Claude & Celest
12-11-2010, 10:16 PM
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;}

Excavator
12-12-2010, 12:03 AM
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.



.



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum