html - Height of a div with absolutely positioned children -


i have bunch of html absolutely positioned , html snippet supposed show after that. on lap.

http://jsbin.com/okamot/1/edit

everything under .drag-drop supposed absolutely placed height , width of .drag-drop become zero. exhibit button , exhibit text supposed show after bolded this drag , drop item. because height of .drag-drop 0 shows right on contents of .drag-drop`.

i have had issue before, fortunately easy calculate height of children of .drag-drop , set height of .drag-drop using javascript. time harder contains more children , not constant. how change css exhibit shows below drag drop ?

absolute positioning removes element layout, therefore children no longer part of calculation of parent's sizing. you'll need use js solve this.


Comments

Popular posts from this blog

How to mention the localhost in android -

php - Calling a template part from a post -