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?
you can set 50vw (50% of viewport width).
Comments
Post a Comment