shotsy247
03-04-2009, 07:57 AM
Hi All,
I have a div that contains four other divs. Each of these divs contains an image. I have created the four images so the total width equals the width assigned to the parent div. All displays as expected in Firefox, but the last image disappears in IE due to overflow hidden.
Here's the css:
#products{
background-color:#009933;
width: 574px;
height:144px;
float:left;
clear:both;
margin: 5px 0 0 0;
display:inline;
overflow:hidden;
}
#prod1{
float:left;
display:inline;
overflow:hidden;
}
#prod2{
float:left;
display:inline;
overflow:hidden;
}
#prod3{
float:left;
display:inline;
overflow:hidden;
}
#prod4{
float:right;
display:inline;
overflow:hidden;
}
Each image goes in the prod divs. Image one and four are 144px wide. Images two and three are 143px wide.
Thanks for any help.
_t
I have a div that contains four other divs. Each of these divs contains an image. I have created the four images so the total width equals the width assigned to the parent div. All displays as expected in Firefox, but the last image disappears in IE due to overflow hidden.
Here's the css:
#products{
background-color:#009933;
width: 574px;
height:144px;
float:left;
clear:both;
margin: 5px 0 0 0;
display:inline;
overflow:hidden;
}
#prod1{
float:left;
display:inline;
overflow:hidden;
}
#prod2{
float:left;
display:inline;
overflow:hidden;
}
#prod3{
float:left;
display:inline;
overflow:hidden;
}
#prod4{
float:right;
display:inline;
overflow:hidden;
}
Each image goes in the prod divs. Image one and four are 144px wide. Images two and three are 143px wide.
Thanks for any help.
_t