styleBunny
Technical User
Hi folks,
Im sure this is the same old problem that comes up time and time again, but i cant find a clear answer. How do i make my containing divs scale in height to match that of their content?
In this example, , the div contains the text and the images, (the images were in their own div as well), i have managed to get the height to scale to the length of the image div by using float:left, which is a win for me! But as of yet, the height of the overall containing div wont come to the party and scale its height to the length of the text div.
This occurs when viewing firefox. One slight casualty in ie, when using the float left to make the text div scale. Is that it has skewed the 5px left margin, making the div look aligned to the right. This is not so in ie.
Im sure there is a simple fix to this tho i can work it out!
thanks again
Paul.
Im sure this is the same old problem that comes up time and time again, but i cant find a clear answer. How do i make my containing divs scale in height to match that of their content?
In this example, , the div contains the text and the images, (the images were in their own div as well), i have managed to get the height to scale to the length of the image div by using float:left, which is a win for me! But as of yet, the height of the overall containing div wont come to the party and scale its height to the length of the text div.
This occurs when viewing firefox. One slight casualty in ie, when using the float left to make the text div scale. Is that it has skewed the 5px left margin, making the div look aligned to the right. This is not so in ie.
Im sure there is a simple fix to this tho i can work it out!
thanks again
Paul.