I currently have a setup with a navbar, carousel, and intro section.
Desired Layout:
- Carousel should be full width and height
- Navbar positioned on top of the carousel
- Intro content placed below the carousel
Current Issues:
- The images in the carousel are only full width but not full height
- Navbar is successfully positioned over the carousel
- Intro content mistakenly starts under the navbar instead of beneath the carousel
HTML Structure:
<div class="carousel"></div>
<div class="navbar"></div>
<div class="intro"></div>
CSS Code:
html, body {
height: 100%;
width: 100%;
}
.navbar {}
.intro {}
.carousel {
position: absolute;
margin: auto;
display: block;
height: 100%;
width: 100%;
z-index: -1;
}