absorption
03-11-2005, 03:14 PM
i've been reading how ie doesn't support min-height and some related things, and am looking for a workaround....
i've got a div (#contentbackground) that contains nested divs(#itembox), each of which has an image on the left and text on the right. the images are 75px tall, and the text can be whatever length. i have a background image in these 'itemboxes' as well. these two bits are spec'd as follows:
#contentbackground{
width: 400px;
height: 100%;
display: block;
position: relative;
margin-top: 40px;
margin-right: auto;
margin-left: auto;
background-image: url(assets/k.jpg);
}
#itembox{
display: block;
margin-top: 15px;
margin-bottom: 15px;
background-image: url(assets/k.jpg);
}
--- then, i have applied this:
.floatleft {
float: left;
padding-right: 10px;
display: inline;
}
to the images in the 'itemboxes' and am wondering if there's not something i can put into this bit of code that would make the 75px image determine the minimum height of its parent 'itembox'.
this stuff seems like it should be pretty basic and IE makes me want to use tables again!! argh! thanks for the help.
i've got a div (#contentbackground) that contains nested divs(#itembox), each of which has an image on the left and text on the right. the images are 75px tall, and the text can be whatever length. i have a background image in these 'itemboxes' as well. these two bits are spec'd as follows:
#contentbackground{
width: 400px;
height: 100%;
display: block;
position: relative;
margin-top: 40px;
margin-right: auto;
margin-left: auto;
background-image: url(assets/k.jpg);
}
#itembox{
display: block;
margin-top: 15px;
margin-bottom: 15px;
background-image: url(assets/k.jpg);
}
--- then, i have applied this:
.floatleft {
float: left;
padding-right: 10px;
display: inline;
}
to the images in the 'itemboxes' and am wondering if there's not something i can put into this bit of code that would make the 75px image determine the minimum height of its parent 'itembox'.
this stuff seems like it should be pretty basic and IE makes me want to use tables again!! argh! thanks for the help.