I am looking for a way to make floating or absolutely positioned elements stay in the stream in css. I pretty much think css is stupid because it has nothing like a stream: stream: turn it off to keep it in the stream or pull it out.
The problem is that I want to have a div element with a variable height, I have a floating image on the left in the div, and I want the div to be at least the height of the image. I also want it to be at least large enough to contain all the text that is in the stream (this is obviously not a problem).
I need an image to be able to resize. I am currently using jQuery solution, but it is valid. Since I don’t feel debugging, and I feel that there must be some solution for CSS, I ask.
Does anyone know how I can do this?
source
share