Os pongo lo más relevante del código.
Código CSS:
Ver original<style>
html, body{
height: 100vh;
}
.slider-inicio{
background:url("imagenes/fondo1.jpg");
height: 100vh;
background-size: cover;
background-position: center;
}
.fondo-galeria1{
background:url("imagenes/back5.jpg");
height: 100vh;
background-size: cover;
background-position: center;
}
</style>
Código HTML:
Ver original<!-- Menú -->
<nav class="navbar navbar-expand-sm navbar-dark bg-dark fixed-top"> <a data-scroll class="navbar-brand" href="#inicio"> <img src="imagenes/logo.png" width="30px" height="30px" class="d-inline-block align-top" alt="Turibamba Ocio"/>Turibamba
</a> <button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarSupportedContent" aria-controls="navbarSupportedContent" aria-expanded="false" aria-label="Toggle navigation"> <span class="navbar-toggler-icon"></span>
<div class="collapse navbar-collapse" id="navbarSupportedContent"> <ul class="navbar-nav mr-auto text-center"> <li class="nav-item active"> <a data-scroll class="nav-link" href="#inicio">Inicio
</span></a> <a data-scroll class="nav-link" href="#cumpleaños">Cumpleaños
</a> <a data-scroll class="nav-link" href="#animaciones">Animaciones
</a> <a data-scroll class="nav-link" href="#despedidas">Despedidas
</a> <a data-scroll class="nav-link" href="#nosotras">Nosotras y el parque
</a> <a data-scroll class="nav-link" href="#galeria">Galería
</a> <a data-scroll class="nav-link" href="#tarifas">Tarifas
</a> <a data-scroll class="nav-link" href="#contacto">Contacto
</a> <!-- Fin menú -->
<!-- Inicio -->
<div class="container-fluid slider-inicio d-flex justify-content-center align-items-center" id="inicio"> <div class="row flex-column"> <div class="col-12 d-flex justify-content-center align-items-center pb-5"><img class="img-fluid" src="imagenes/turibamba.png"/></div> <h4 class="font-weight-bold d-flex justify-content-center pt-5">C/ Batalla de Arápiles, 24 (La Almozara)
</h4> <!-- Fin del Inicio-->
<!-- Inicio de cumpleaños -->
<div class="container-fluid" style="padding-top: 80px; height: 100vh; overflow: auto;" id="cumpleaños"> <img class="card-img-top" src="imagenes/Slide-1.jpg" alt="Card image cap"> <h5 class="card-title">Card title
</h5> <p class="card-text">This is a longer card with supporting text below as a natural lead-in to additional content. This content is a little bit longer.
</p> <a class="btn btn-primary" href="#" role="button">Link
</a> <img class="card-img-top" src="imagenes/Slide-2.jpg" alt="Card image cap"> <h5 class="card-title">Card title
</h5> <p class="card-text">This is a longer card with supporting text below as a natural lead-in to additional content. This content is a little bit longer.
</p> <a class="btn btn-primary" href="#" role="button">Link
</a> <!-- Fin de cumpleaños -->
<!-- Inicio Jumbotron Animaciones-->
<div class="container-fluid" style="padding-top: 80px; height: 100vh; overflow: auto;" id="animaciones"> <div class="row flex-column"> <div class="col-12 d-flex justify-content-center pb-3"> <div class="jumbotron rounded-0"> <h1 class="display-3">Hello, world!
</h1> <p class="lead">This is a simple hero unit, a simple jumbotron-style component for calling extra attention to featured content or information.
</p> <div class="d-flex justify-content-between align-items-center"> <p>It uses utility classes for typography and spacing to space content out within the larger container.
</p> <a class="btn btn-primary btn-lg" href="#" role="button">Learn more
</a> <!-- Fin Jumbotron animaciones -->
<!-- Inicio Jumbotron despedidas-->
<div class="container-fluid" style="padding-top: 80px; height: 100vh; overflow: auto;" id="despedidas"> <div class="row flex-column"> <div class="col-12 d-flex justify-content-center pb-3"> <div class="jumbotron mt-5 rounded-0"> <h1 class="display-3">Hello, world!
</h1> <p class="lead">This is a simple hero unit, a simple jumbotron-style component for calling extra attention to featured content or information.
</p> <div class="d-flex justify-content-between align-items-center"> <p>It uses utility classes for typography and spacing to space content out within the larger container.
</p> <a class="btn btn-primary btn-lg" href="#" role="button">Learn more
</a>
Ahora sí que funciona pero porque he puesto overflow auto y entonces aparecen las barras de scroll. Pero yo no quiero que aparezcan y se vea todo el contenido, uno detrás de otro sin que se superpongan.
Sólo os he puesto 3 divs pero hay más. Gracias.