- style.css
- setup.css
- index.html
div {
background-color: aquamarine;
}
@media (max-width: 300px), (min-width: 500px) {
div {
background-color: gold;
}
}
body {
font-family: sans-serif;
padding: 20px;
}
div {
padding: 10px;
}
div:not(:first-child),
p:not(:first-child) {
margin-top: 10px;
}
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link href="../assets/reset.css" rel="stylesheet">
<link href="setup.css" rel="stylesheet">
<link href="style.css" rel="stylesheet">
</head>
<body>
<div>
<p>This element is responsive. I’ll add some text here so we have something to look at and so that it wraps, but the text itself isn’t important, at the moment.</p>
</div>
</body>
</html>