I'm currently working on developing an administration dashboard for an application, and I require a layout that resembles the following:
---------------------------------------------------------------------------------
| |
| NAVBAR |
---------------------------------------------------------------------------------
| | | |
| N | | |
| A | | |
| V | | |
| I | | |
| G | | |
| A | | |
| T | MAIN VIEW | SUB |
| I | | VIEW |
| O | | |
| N | | |
| | | |
| | | |
| | | |
| | | |
---------------------------------------------------------------------------------
I aim to have both the width and height occupy 100% of the entire viewport. My initial attempt involved using .navbar-fixed-top
to make the top navbar stay in place, implementing position: absolute
for the side navigation bar, and specifying fixed heights for the main and sub views through media queries depending on screen size. However, I am now seeking a more efficient and neater solution. What would be the best way to achieve this type of layout?