PDA

View Full Version : IE adds linebreak?



thenajsays
09 Jun 2008, 05:53 PM
my page is located at http://www.equusdev.com/
for some odd reason, IE has taken it upon itself to insert what appears to be a line break inbetween the top heading and the main body... any thoughts or tips?

Wickham
10 Jun 2008, 03:32 AM
First I added temporary background-colors to divs and found that #head is extending under the left logo:-

#head { background-color: blue;
width:800px;
margin: 0 auto;
}
#hlinks { background-color: skyblue;
position:relative;
bottom:20px;
font-size:9pt;
color:#FFFFFF;
text-align:right;
width: 610px;
float: right
}
div.scroller {
/* modify width and height of scrolling section if

necessary */
font-size:11px;
width:800px;
height:500px;
top:138px;
overflow:hidden;
margin: 0 auto;
z-index: 1; background-color: green;
}
So I added a height of 118px to #head

#head { height: 118px;
width:800px;
margin: 0 auto;
}

which stopped it going under the logo.