hanlonj Posted January 12, 2009 Share Posted January 12, 2009 Hi, I have an image on my website with text floated right of the image. I have a footer immediately below both. Here's the problem. The image height is higher than the text. This means the image dips to cover part of the footer. Apart from reducing the height of my image, is there any handy CSS way of dealing with this? If I'm being unclear please let me know. hj Link to comment https://forums.phpfreaks.com/topic/140560-image-covering-footer/ Share on other sites More sharing options...
htmlstig Posted January 12, 2009 Share Posted January 12, 2009 have you gave the div that the image is in an auto height? that will make the div stretch to whatever is in it. Link to comment https://forums.phpfreaks.com/topic/140560-image-covering-footer/#findComment-735590 Share on other sites More sharing options...
dropfaith Posted January 13, 2009 Share Posted January 13, 2009 wouldnt forcing the footer to clear:both also work by forcing the footer to the bottom of the larger div Link to comment https://forums.phpfreaks.com/topic/140560-image-covering-footer/#findComment-735992 Share on other sites More sharing options...
haku Posted January 14, 2009 Share Posted January 14, 2009 clear:both is the way to go. Link to comment https://forums.phpfreaks.com/topic/140560-image-covering-footer/#findComment-736792 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.