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

How to give answer in LEVEL 11 > LESSON 2 to study to night

IAM lack the problem in media query
by

1 Answer

iamabhishek
Here is the correct answer:

<!DOCTYPE html>
<html>
<head>
<title>Adding breakpoint according to device</title>
<style>
@media (max-width: 600px) {
body {background: red;}
}


@media (min-width: 600px) {
body {background: #ffc8dd;}
}


@media (min-width: 768px) {
body {background: #ffafcc;}
}


@media (min-width: 992px) {
body {background: blue;}
}


@media (min-width: 1200px) {
body {background: #a2d2ff;}
}

</style>
</head>
<body>
<p>Resize the browser window to see how the background color of this paragraph change on different screen sizes.</p>
</body>
</html>

Login / Signup to Answer the Question.