Trying to design a layout with a topbar followed by a split layout has posed some challenges. The main issue I encountered was the need for the width
and height
to adjust automatically based on the browser size.
To address this, I attempted to use a table:
body {
margin: 0;
padding: 0;
min-height: 500px;
min-width: 600px;
}
table {
border-collapse: collapse;
}
.topbar {
height: 50px;
position: relative;
background: grey;
}
.layout_table {
height: 100%;
width: 100%;
}
<body>
<table class="layout_table">
<tr>
<td class="topbar">
hallo
</td>
</tr>
<tr>
<table width="100%">
<td width="20%" style="background: blue;">
</td>
<td width="80%" style="background: yellow;">
</td>
</table>
</tr>
</table>
</body>
The current outcome is mostly accurate. However, there is an issue with the second row of the initial table not occupying full height.
What steps can be taken to resolve this?