Good morning
I wanted to make a vertical web page to practice, and I found this one that I am following as a reference: Link to pag. reference website .
How did you do for the initial background image, of your feet occupy exactly the width and height of the screen?
I try but it does not work out. I have done this:
.Portada {
height: 700px;
width: 100%;
background-color: rgba(0, 0, 0, 0.3);
text-align: center;
position: relative;
}
#Fondo-Portada {
height: 100%;
width: 100%;
position: absolute;
top: 0;
left: 0;
z-index: -100;
}
#Logo {
height: 90px;
width: 90px;
margin-top: 50px;
margin-bottom: 50px;
z-index: 10;
}
.mierda {
height: 200px;
width: 100%;
background-color: aqua;
}
#Frase-Presentacion {
font-size: 40px;
font-weight: bold;
color: #FFF;
}
#Btn-Ready {
height: auto;
width: 300px;
font-size: 18px;
background-color: transparent;
color: #FFF;
line-height: 26px;
border-radius: 28px;
border-color: #b00000;
cursor: pointer;
transition: width 0.2s;
}
#Btn-Ready:hover {
width: 320px;
background-color: #b00000;
}
#Aprende-Mas {
color: #FFF;
font-size: 18px;
opacity: 0.6;
position: absolute;
bottom: 0px;
}
.icon-keyboard_arrow_down {
color: #FFF;
font-size: 28px;
opacity: 0.6;
}
<div class="Portada">
<img id="Fondo-Portada" src="Img/Fondo-Pies.jpg" alt="">
<img id="Logo" src="Img/logo70px.png" alt="Logo">
<p id="Frase-Presentacion"> Hola, soy Carlos. Y diseño y construyo </p>
<input type="button" id="Btn-Ready" value="I'm ready">
<p id="Aprende-Mas">Aprende más de lo que hago</p>
<span class="icon-keyboard_arrow_down" id="Aprende-Mas"></span>
</div>
Basically I have made a general container, Portada
and inside I have been inserting the background image, texts, buttons ...
What is the way to insert this background and especially how it is done to give them the height and width to occupy 100% of the screen?