Jump to content

Make Absolute Positioned Objects Stretch Parent Div


kensbeijing
 Share

Recommended Posts

I have a div, which has other divs inside. But the divs inside have been placed using absolute positioning, it means that the parent div does not stretch to fit all of the absolute divs inside.

<div style="position: absolute;"><div style="position: absolute; top: 500px;"></div></div>

I need to make the main div at the top stretch to fit in all of its inner divs.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...