medium(size >= 768px), large (size >= 992px) and extra llarge(size > 1200px)
image names:
#slack NETFLIX fitbit google airbnb uber
<!DOCTYPE html>
<html>
<head>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<style>
body {
background-color: lightgreen;
}
@media only screen and (max-width: 768px) {
body {
background-color: blue;
}
}
@media only screen and (max-width: 992px) {
body {
background-color: red;
}
}
@media only screen and (max-width: 1200px) {
body {
background-color: green;
}
}
</style>
</head>
<body>
<p>Hello, World!</p>
</body>
</html>
Comments
Leave a comment