Currently, I am trying to set up the layout for my application. The existing layout works fine, but the issue is that the navigation bar does not stay fixed in position. Additionally, if the content exceeds a certain height or width, it should be controlled by the browser's scroll bar.
I have attempted to use 'position:fixed' but it just makes things messier.
How can I configure my layout to achieve the desired layout?
app.component.html
<div id="wrapper">
<div class="al-left" >
<app-sidebar [isExpanded]="sidebarExpanded" (toggleSidebar)="sidebarExpanded = !sidebarExpanded" ></app-sidebar>
</div>
<div class="al-right">
<app-navbar></app-navbar>
<div class="ex-right" id="content">
<router-outlet></router-outlet>
</div>
</div>
</div>
app.component.css
.al-right {flex-grow: 1;}
.al-right{margin-left:0px;
margin-right:0px;}
.ex-right{
margin-left:20px;
margin-right:20px;
}
https://i.sstatic.net/K047C.png https://i.sstatic.net/ujlH6.png
Updated