1.carousel-item {
2 height: 100vh;
3 min-height: 350px;
4 background: no-repeat center center scroll;
5 -webkit-background-size: cover;
6 -moz-background-size: cover;
7 -o-background-size: cover;
8 background-size: cover;
9}
10
1<header>
2 <div id="carouselExampleIndicators" class="carousel slide" data-ride="carousel">
3 <ol class="carousel-indicators">
4 <li data-target="#carouselExampleIndicators" data-slide-to="0" class="active"></li>
5 <li data-target="#carouselExampleIndicators" data-slide-to="1"></li>
6 <li data-target="#carouselExampleIndicators" data-slide-to="2"></li>
7 </ol>
8 <div class="carousel-inner" role="listbox">
9 <!-- Slide One - Set the background image for this slide in the line below -->
10 <div class="carousel-item active" style="background-image: url('https://source.unsplash.com/LAaSoL0LrYs/1920x1080')">
11 <div class="carousel-caption d-none d-md-block">
12 <h2 class="display-4">First Slide</h2>
13 <p class="lead">This is a description for the first slide.</p>
14 </div>
15 </div>
16 <!-- Slide Two - Set the background image for this slide in the line below -->
17 <div class="carousel-item" style="background-image: url('https://source.unsplash.com/bF2vsubyHcQ/1920x1080')">
18 <div class="carousel-caption d-none d-md-block">
19 <h2 class="display-4">Second Slide</h2>
20 <p class="lead">This is a description for the second slide.</p>
21 </div>
22 </div>
23 <!-- Slide Three - Set the background image for this slide in the line below -->
24 <div class="carousel-item" style="background-image: url('https://source.unsplash.com/szFUQoyvrxM/1920x1080')">
25 <div class="carousel-caption d-none d-md-block">
26 <h2 class="display-4">Third Slide</h2>
27 <p class="lead">This is a description for the third slide.</p>
28 </div>
29 </div>
30 </div>
31 <a class="carousel-control-prev" href="#carouselExampleIndicators" role="button" data-slide="prev">
32 <span class="carousel-control-prev-icon" aria-hidden="true"></span>
33 <span class="sr-only">Previous</span>
34 </a>
35 <a class="carousel-control-next" href="#carouselExampleIndicators" role="button" data-slide="next">
36 <span class="carousel-control-next-icon" aria-hidden="true"></span>
37 <span class="sr-only">Next</span>
38 </a>
39 </div>
40</header>