I am attempting to design a webpage layout with a fixed horizontal navigation bar at the top, where all other content on the page starts underneath. Additionally, I want a fixed sidebar on the left side where all content should align to the right of it.
You can view my attempt at this layout on jsfiddle here: https://jsfiddle.net/o5p8yuvx/5/.
Unfortunately, the current setup is not working as intended. While the content correctly begins under the topbar
, it does not align to the right of the sidebar
. I've noted in the code that sidebar
sits below topbar
; uncommenting it will reveal that the content does not position to the right of sidebar
. My goal is to have any additional text located outside both wrappers fill the space beneath topbar
and to the right of sidebar
, instead of just appearing below topbar
.
This issue persists with other content-containing divs as well. How can I ensure that all subsequent content appears outside of the bars, similar to how sidebar
is positioned beneath topbar
?