Tout est dans le titre. Quand je passe à moins de 829px plus aucun header, que dalle. Voice le code CSS....header {
height: 450px;
width: 100%;
background: rgb(255, 118, 117);
position: relative;
}
.header_navbar {
width: 100%;
height: 100px;
display: flex;
flex-direction: row;
justify-content:space-between;
align-items: center;
}
.header_navbar--logo-title {
color:rgb(255, 234, 167);
font-size: 28px;
}
.header_navbar--menu-link {
margin-left: 40px;
color:rgb(45, 52, 54);
text-decoration: none;
}
.header_texture {
height: 100%;
width: 100%;
position: absolute;
top: 0; left: 0;
background:
background-size: cover;
z-index: 1;
opacity: 0.7;
}
.header_mask{
position: absolute;
bottom: 0;
background: 0 0;
height: 42px;
width: 100%;
z-index: 10;
}
.header_slogan{
text-align: center;
margin-top: 30px;
}
.header_slogan-title {
color: white;
font-size: 40px;
text-transform: uppercase;
font-family: 'Anton';
font-weight: bold;
letter-spacing: 2px;
}
.h_slogan-btn {
color: white;
font-size: 18px;
text-decoration: none;
padding: 15px 20px;
background: #0984e3;
border-radius: 3px;
display: none;
}
.header_navbar-toggle{
width: 100px;
height: 30px;
display: flex;
align-items: center;
display: none;
}
.header_navbar-toggle-icons,.header_navbar-toggle-icons:before,.header_navbar-toggle-icons:after {
content: "";
display: block;
width: 60px;
height: 3px;
border-radius: 5px;
background-color:rgb(9, 132, 227);
position: relative;
}
.header_navbar-toggle-icons:before {top: 10px}
.header_navbar-toggle-icons:after {top: -14px}
@media only screen and (max-width: 829px){
.container {
width: 100%;
padding: 0 20px;
}
.header_navbar-toggle {
display: flex;
z-index: 1000;
}
.header_navbar--menu {
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
position: absolute;
width: 100vw;
height: 100vh;
background: rgb(229, 142, 38);
top: 0; left: 0;
}
}
Voir la règle @media.
Pourrais tu mettre le code html de la partie header aussi ?
Bien sur voici le code HTML:
<div class="header_navbar-toggle">
<span class="header_navbar-toggle-icons"></span>
</div>
est-ce que tu peux me montrer le code HTML à partir de container ? Parce que je crois que le problème doit se trouver à ce niveau.