Signup/Sign In
Ask Question
Not satisfied by the Answer? Still looking for a better solution?

There is still something missing in media query. Have you used curly braces {}? Level-11>Lesson 4

<!DOCTYPE html>
<html>
<head>
<title>Changing font-size using Media query</title>
<style>
body{
@media (min-width: 550px) and (min-width: 550px) {
background-color: pink;
font-size: 20px;
}
}
</style>
</head>
<body>
<h1>Studytonight</h1>
</body>
</html>
by

1 Answer

iamabhishek
Here is the correct answer:

<!DOCTYPE html>
<html>
<head>
<title>Changing font-size using Media query</title>
<style>
@media (min-width: 550px) {
body {
font-size:25px;
}
}

</style>
</head>
<body>
<h1>Studytonight</h1>
</body>
</html>

Login / Signup to Answer the Question.