I am trying to do something like:
--------------------------------------------
| --------- text text text text text text |
| | image | text text text text text text |
| | | text text text text text text |
| | | text text text text text text |
| --------- text text text text text text |
| text text text text text text text text |
| text text text text text text text text |
--------------------------------------------
markup should be correct:
<div>
<img src='myimage.jpg' style='float:left;'>
tex text text ..
</div>
the problem is that if there is only text, the image will βfloatβ out of the div container, which looks like this:
--------------------------------------------
| --------- text text text text text text |
| | image | text text text text text text |
|_| |________________________________|
| |
---------
any ideas to fix this? the only solution for me is to set the minimum height of the div container. THX
source
share