I need to create a simple HTML page having a menu bar on the left side (width: 17%) and content on the right side (width: 83%).
I have come up with the following HTML code:
.row {
display: block;
}
.cell {
padding: 0;
margin: 0;
display: inline-block;
border: solid;
}
div#leftCol {
width: 17%;
}
div#rightCol {
width: 83%;
float: right;
}
<div class="row">
<div class="cell" id="leftCol">
Menu Bar here
</div>
<div class="cell" id="rightCol">
Content here
</div>
</div>
However, the divs overlaps on each other.
I tried reducing the size of the right div to be 82% and it moved the divs on the same line but it left a gap in-between.
What can I change to align the divs to be on the same line using 17% and 83% space without using <table>
tags?
Expected result: