I have created a simple HTML page, where I have a parent div
with over-flow enabled in both axes. Now within that div
, there are 2 div
s which I want to place side by side.
#Result {
margin: 0 auto;
padding: 0;
background-color: rgba(0, 0, 0, .02);
padding-top: 25px;
font-size: 16px;
overflow: scroll;
width: 99%;
height: calc(100% - 90px - 70px);
position: absolute;
}
#Left,
#Right {
height: calc(99vh - 90px - 70px);
width: 28vw;
margin: 0 auto;
padding: 0;
display: inline-block;
float: left;
text-align: center;
background-color: rgba(0, 0, 0, .04);
border-right: 1px solid #a6a6a6;
border-bottom: 1px solid #a6a6a6;
}
#Right {
background-color: rgba(0, 0, 0, .5);
border-right: 0px solid #737373;
padding-left: 15px;
margin-right: 15px;
width: 2000px;
}
<div id='Result'>
<div id='Left'>
</div>
<div id='Right'>
</div>
</div>
Codepen - https://codepen.io/Volabos/pen/qBdNyPa?editors=1100
However unfortunately, the 3rd div
is moved down if its width is taken a large number. How can I place the 2nd and 3rd div
side by side?