I am looking to design a basic HTML page with a menu bar on the left side occupying 17% of the width, and content on the right side occupying 83% of the width.
Below is the HTML code I have constructed:
.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 goes here
</div>
<div class="cell" id="rightCol">
Content goes here
</div>
</div>
However, I am facing an issue where the divs are overlapping each other.
https://i.sstatic.net/b90i9.png
I attempted to adjust the right div size to 82%, which resolved the overlapping issue but caused a gap between the divs.
How can I ensure that the divs align on the same line with 17% and 83% width distribution without incorporating <table>
elements?
Desired outcome: