Robię stronę testową stronę internetową i mam problem. Strona ma być responsywna lecz gdy rozwijam nav to widać napis, który pod nią jest.
zamieszczam zdjęcie
kod:
*{
padding: 0;
margin: 0;
text-decoration: none;
list-style: none;
box-sizing: border-box;
}
body{
font-family: montserrat;
}
nav{
background: #FFFFFF;
height: 100px;
width: 100%;
box-shadow: 0px 5px 10px #f5f5f5;
}
label.logo{
color: #000000;
font-size: 35px;
line-height: 100px;
padding: 0 100px;
font-weight: bold;
}
nav ul{
float: right;
margin-right: 20px;
}
nav ul li{
display: inline-block;
line-height: 100px;
margin: 0 5px;
}
nav ul li a{
color: #000000;
font-size: 17px;
padding: 7px 13px;
border-radius: 3px;
text-transform: uppercase;
}
a.active,a:hover{
text-decoration: underline;
transition: .5s;
}
.checkbtn{
font-size: 30px;
color: black;
float: right;
line-height: 100px;
margin-right: 40px;
cursor: pointer;
display: none;
}
#check{
display: none;
}
@media (max-width: 952px){
label.logo{
font-size: 30px;
padding-left: 50px;
}
nav ul li a{
font-size: 16px;
}
}
@media (max-width: 858px){
.checkbtn{
display: block;
}
ul{
position: fixed;
width: 100%;
height: 100vh;
background: #f5f5f5;
top: 100px;
left: -100%;
text-align: center;
transition: all .5s;
}
nav ul li{
display: block;
margin: 50px 0;
line-height: 30px;
}
nav ul li a{
font-size: 20px;
}
a:hover,a.active{
background: none;
color: #0082e6;
text-decoration: none;
}
#check:checked ~ ul{
left: 0;
}
}
.box {
margin-left: auto;
margin-right: auto;
width: 10em;
}
.contener {
color: black;
margin: 0;
position: absolute;
top: 50%;
left: 50%;
margin-right: -50%;
transform: translate(-50%, -50%);
}