I’m having trouble properly positioning some divs within a larger div and having them behave as I want.
The source and a preview is here: http://jsbin.com/usuniw/6/edit
Problem 1
When the hidden div is unhidden it appears under the div I want it to appear inside. Once the dive inside is resized (using a handle on the left hand side) it pops into place
Problem 2
When resizing the originally hidden div it moves outside the boundry of it’s parent rather than aligning itself to the right-hand side of it.
Thanks for any help you can give.
At the moment, you have the
#selectedResultelement set as float right which is causing it to appear underneath the#ipadelement.If you get rid of the
float:righton#selectedResultand instead set it to:And set the
#ipadelement to:Then the element will be fixed to the top and right sides of its parent.
You can see an updated version of your example here: http://jsbin.com/uxavov/edit#preview