HTML & CSS
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?
Just add overflow: hidden to the highlight div, like so:
border: 1px solid red;
<font color='"#FF0000"'>overflow: hidden;</font>
Thank you - I have been wondering about that for a while now
This topic is now closed. New replies are no longer allowed.