I am currently working on developing a new application that involves serializing the topbar and sidebar and surrounding them with a form tag, while displaying the sidebar and results side by side.
My initial attempt involved using flex layout, but I have not been successful in achieving the desired outcome. I was only able to make it work using float. However, my preference is to utilize flex if it can be done.
Furthermore, it is important that the results are not nested within the same form tag as it contains its own set of tags which could lead to errors.
.app {
background-color: rgba(255,0,0,0.3);
padding: 40px;
}
.form {
display: unset;
}
.topbar {
width: 100%;
background-color: rgba(0,255,0);
}
.sidebar {
width: 20%;
float: left;
background-color: rgba(0,0,255,0.3);
}
.results {
width: 80%;
float: left;
background-color: rgba(0,255,255,0.3);
}
.app:after {
content: "";
display: table;
clear: both;
}
<div class="app">
<form class="form">
<div class="topbar">Topbar</div>
<div class="sidebar">Sidebar</div>
</form>
<div class="results">results</div>
</div>