Skip to content Skip to sidebar Skip to footer

Css Adjust Parent Div Size If Absolute Child Div Falls Outside Boundaries

I have a parent div that is a specified width and height. If I have a child div inside that, that is outside the boundaries, is there a way to make the parent div adjust size to f

Solution 1:

Check this out.

http://jsfiddle.net/jURc9/8/

You want to push the child down 250px from the top of the parent so do no use top:250px. Use margin-top:250px; and position:relative;

Post a Comment for "Css Adjust Parent Div Size If Absolute Child Div Falls Outside Boundaries"