ktulu
08-12-2003, 08:40 AM
Hi,
I'm trying to do a three column css layout. In the center column, I will have some images. I don't know much about css, so I used this code for the center column from a tutorial:
#centercontent {
margin: 48px 190px 20px 190px;
padding: 10px;
border: 1px solid #ccc;
background: #FFFFFF;
}
When I do just text, the area grows and shrinks as necessary. If I put an image as part of that text, the whitespace does not expand to include the image.
Check it out here: http://tambascio.homelinux.org/www.euclid-floral.com/new.html
If you need to view the whole stylesheet, you can see it at: http://tambascio.homelinux.org/www.euclid-floral.com/newstylesheet2.css
I understand the stylesheet is defining an area, and the margins are for around the text. I want to know how to make it so that the image is considered part of the text area, and therefore the white box in the center will grow to contain it.
It was suggested to me on another board to put a height: 300px in the #centercontent definition, but that caused the whole white center area to jump up about 50 pixels in IE only.
Thanks in advance,
Kevin
I'm trying to do a three column css layout. In the center column, I will have some images. I don't know much about css, so I used this code for the center column from a tutorial:
#centercontent {
margin: 48px 190px 20px 190px;
padding: 10px;
border: 1px solid #ccc;
background: #FFFFFF;
}
When I do just text, the area grows and shrinks as necessary. If I put an image as part of that text, the whitespace does not expand to include the image.
Check it out here: http://tambascio.homelinux.org/www.euclid-floral.com/new.html
If you need to view the whole stylesheet, you can see it at: http://tambascio.homelinux.org/www.euclid-floral.com/newstylesheet2.css
I understand the stylesheet is defining an area, and the margins are for around the text. I want to know how to make it so that the image is considered part of the text area, and therefore the white box in the center will grow to contain it.
It was suggested to me on another board to put a height: 300px in the #centercontent definition, but that caused the whole white center area to jump up about 50 pixels in IE only.
Thanks in advance,
Kevin
