I am in need of assistance with my HTML layout.
<div class="container">
<div class="sidebar" style="float:right"> Ignore sidebar? </div>
<div> main content </div>
</div>
The container is set to have a flex display property like this:
.container {
display: flex;
}
My goal is to float the sidebar to the right while keeping the other elements following the flex rule defined by the parent container.
Is it possible to achieve this?
If not, what would be the correct approach to use float: right
within a flex layout?