tizer — 2012-03-22T20:58:34-04:00 — #1
OK - in this example I want the orange div#highlight to obey the width & margins of the right floated div#right_col.
The amount of images in #right_col will varying in height for each page. The position of #highlight within the content will also vary.
What I would like is for div#highlight to be width 100% when not next to div#right_col, and if it is next to div#right_col, to obey the margins and width of div#right_col.
So as it is at the moment, the div would not be 100% width in the ideal situation.
Is this possible?
ralphm — 2012-03-22T21:14:54-04:00 — #2
Just add overflow: hidden to the highlight div, like so:
border: 1px solid red;
<font color='"#FF0000"'>overflow: hidden;</font>
tizer — 2012-03-22T21:33:11-04:00 — #3
Thank you - I have been wondering about that for a while now