Windhorse
10-08-2009, 03:49 PM
Hello,
I am attempting to style a div that contains some text and an image. My goal (for the purpose of this example) is to apply a solid background color to the div. My problem is that the background color only covers the text of the div. If the height of the image is greater than the height of the text, the background color does not surround the image. I have posted an example of this here: http://windhorsemedia.com/private/20091008/.
Because I am working with auto generated content (Joomla CMS), I can't fix this by just specifying a height for the div or adding some inserting page breaks into the HTML to ensure the height of the text is greater than the image.
Thanks in advance for any suggestions on how to address this.
I am attempting to style a div that contains some text and an image. My goal (for the purpose of this example) is to apply a solid background color to the div. My problem is that the background color only covers the text of the div. If the height of the image is greater than the height of the text, the background color does not surround the image. I have posted an example of this here: http://windhorsemedia.com/private/20091008/.
Because I am working with auto generated content (Joomla CMS), I can't fix this by just specifying a height for the div or adding some inserting page breaks into the HTML to ensure the height of the text is greater than the image.
Thanks in advance for any suggestions on how to address this.