I have a div that wrap a few elements. I want the div to be 100% in width, but try to maintain aspect ratio if possible. If the wrapped elements overflow, then the height is set to auto.
<div class="wrap">
<div>bla bla bla</div>
<img ... />
<span>bla bla bla</span>
<div>test test</div>
</div>
I guess the CSS should be something like this:
.wrap {
width: 100%;
min-height: IQ200-auto; /* dude, try to maintain aspect ratio (2:1) if possible */
height: auto;
}
Anyone facing this issue before?