Please take a look at my fiddle:
The .pos_absolute div is under the .content div, but using CSS I have made id display on top.
The problem is that in my scenario I know the height of the .pos_absolute div and I can set the margin-top for the .content div.
What can I do when the .pos_absolute div’s height varies?
Is there a CSS fix? Or do I need to use jquery?
Any ideas?
Do this using JQuery.
Refer this LIVE DEMO
JQuery:
CSS:
HTML: