Skip to content

Commit d6dfe25

Browse files
committed
Media Queries
1 parent 6c71b59 commit d6dfe25

File tree

2 files changed

+36
-0
lines changed

2 files changed

+36
-0
lines changed

CSS-Media-Queries/intro.css

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
h1 {
2+
color: orangered;
3+
font-size: 3rem;
4+
text-align: center;
5+
margin-top: 300px;
6+
}
7+
@media (min-width: 43.75em) {
8+
h1 {
9+
font-size: 4.5rem;
10+
color: orchid;
11+
}
12+
}
13+
@media (min-width: 62em) {
14+
h1 {
15+
font-size: 5rem;
16+
color: forestgreen;
17+
}
18+
}
19+
@media (min-width: 87em) {
20+
h1 {
21+
font-size: 5.5rem;
22+
color: blueviolet;
23+
}
24+
}

CSS-Media-Queries/intro.html

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
<!DOCTYPE html>
2+
<html lang="en">
3+
<head>
4+
<meta charset="UTF-8" />
5+
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
6+
<title>Media Queries Basics</title>
7+
<link rel="stylesheet" href="intro.css" />
8+
</head>
9+
<body>
10+
<h1>This World Shall Know Pain</h1>
11+
</body>
12+
</html>

0 commit comments

Comments
 (0)