javascript - Displaying a DIV larger than its parent DIV -


i have 2 divs want display on same row (one on left, other on right).

the left div:

.leftdiv {     position: relative;     display: inline-block;     width : 30%; } 

the right one:

.right-div {     float : right;     width : 40%;     background-color: lime; } 

the left div wraps 2 other divs: dropdown-content displayed after clicking on dropdiv.

i want dropdown-content take half (50%) of page when set width 100% can not larger parent leftdiv (which must not exceed 30% of page).

how fix this?

js bin

you can set 50vw (50% of viewport width).


Comments

Popular posts from this blog

javascript - Thinglink image not visible until browser resize -

firebird - Error "invalid transaction handle (expecting explicit transaction start)" executing script from Delphi -

mongodb - How to keep track of users making Stripe Payments -