I am currently working on HTML code for an admin panel. Here is a basic structure:
body {margin: 0}
.adminpanel {
display: flex;
height: 100vh;
}
.leftpane {
width: 250px;
background-color: #0038a8;
}
.rightpane {
width: 87%;
background-color: #ce1126;
}
<div class="adminpanel">
<div class="leftpane">
left
</div>
<div class="rightpane">
right
</div>
</div>
After setting the .leftpane
to 250px, I want the .rightpane
to take up the rest of the available width. Currently, I have it set to width: 87%;
, which works well on my laptop with a resolution of 1900px.
Do you have any suggestions on how to make this layout work better?
In previous projects, I used CSS frameworks for admin panels, but this time I'm coding from scratch.