.logo-container{ background-color: magenta; position: absolute; height: 8%; width: 5%; top: 0%; left: 0%; /* z-index: 1; */ } .navbar-container{ background-color: orange; height: 8%; width: 95%; position: absolute; top: 0%; left:5%; /* z-index: 0; */ } .content-container{ background-color: cyan; position: absolute; height: 92%; width: 100%; top: 8%; left: 0%; }