+ 2
CSS Responsive Web Design- Media Queries arenât working
Hello all! I am having trouble using Media Queries to create responsive web design for different device sizes. I will post the code to show what Iâm doing and let me know where Iâm going wrong! The media query makes no change to the element. HTML <head> <meta name=âviewportâ content=âwidth=device-width, initial-scale=1.0â> </head> CSS @media screen and (max-width: 600px) { h2{ font-size: 30px; } }
10 RĂ©ponses
+ 2
can u post a link to the code?
+ 2
ok so its fine?
+ 2
@media only screen and (max-width: 600px) {
h2{
font-size: 30px;
}
}
+ 1
try that
+ 1
Im interested to see what u make!
+ 1
thank you!!
0
thank you guys! i figured it out, i just created a seprate stylesheets and now it works just fine