Results 1 to 3 of 3
Thread: Make div obey floated div
Mar 22, 2012, 17:58 #1
Make div obey floated div
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?
Mar 22, 2012, 18:14 #2
- Join Date
- Mar 2009
- Melbourne, AU
- 390 Post(s)
- 5 Thread(s)
Mar 22, 2012, 18:33 #3
Thank you - I have been wondering about that for a while now