@media screen and (max-width: 600px) {
h1 {
font-size: 8vw;
font-family: Arial, Helvetica, sans-serif;
font-weight: normal;
}
h2 {
font-size: 7vw;
font-family: Arial, Helvetica, sans-serif;
font-weight: normal;
}
h3 {
font-size: 6.0vw;
font-family: Arial, Helvetica, sans-serif;
font-weight: bold;
}
p {
font-size: 6.0vw;
font-family: Arial, Helvetica, sans-serif;
font-weight: lighter;
}
@media screen and (min-width: 601px) {
h1 {
font-size: 100px;
font-family: Arial, Helvetica, sans-serif;
font-weight: normal;
}
h2 {
font-size: 80px;
font-family: Arial, Helvetica, sans-serif;
font-weight: normal;
}
h3 {
font-size: 60px;
font-family: Arial, Helvetica, sans-serif;
font-weight: bold;
}
p {
font-size: 60px;
font-family: Arial, Helvetica, sans-serif;
font-weight: lighter;
}
this is my code, max-width works well but when i enlarge my browser over 600px, the min-width css wont work and the texts become the default html style. any solutions? .