I have a problem with my CSS and I can't find where the problems lies. I am sure it is a padding / width issue but I can't see where I have gone wrong. Of course my problem only seems to show up in IE 8, but I would appreciate feedback form people using 7 as well.
http://www.devision.com.au/clients/bbchomes/
Here you should see a green box with 6 images inside. In Safari, Chrome, Firefox, all 6 images line up, but in IE, the last image sits low. Why? From what I have been told, it seems ok in IE7, but not IE8. From what I can see the images are 151px + 2 px border + 5 px padding = 160px per image = total width of 960px. The thumbs div is 970px, so why doesn't it fit?
My Stylesheet is below.
This is driving me nuts, and some feedback on where I have gone wrong would be appreciated.
http://www.devision.com.au/clients/bbchomes/
Here you should see a green box with 6 images inside. In Safari, Chrome, Firefox, all 6 images line up, but in IE, the last image sits low. Why? From what I have been told, it seems ok in IE7, but not IE8. From what I can see the images are 151px + 2 px border + 5 px padding = 160px per image = total width of 960px. The thumbs div is 970px, so why doesn't it fit?
My Stylesheet is below.
Code:
@charset "ISO-8859-1";
body {
background-color: #4C4D4F;
background-attachment: fixed;
background-image: url(site_graphics/background.jpg);
background-repeat: repeat-x;
background-position: top;
margin-top: 10px;
}
#thumbs {
width: 970px;
margin: 5px 0 0 0;
height: 101px;
overflow:hidden;
border: 2px solid #99cc00;
position:relative;
}
#thumbs ul {
display:inline;
list-style-type:none;
}
#thumbs li {
float: left;
}
#thumbs a {
margin: 0 0 0 5px;
width: 151px;
height: 94px;
display: block;
border: 2px solid #000000;
}
#thumbs a.activeSlide {
border: 2px solid #AC1F23;
}
#thumbs a:hover {
border: 2px solid #AC1F23;
}
This is driving me nuts, and some feedback on where I have gone wrong would be appreciated.