Skip to content

Commit d0cc805

Browse files
authored
Update style.css
1 parent 1022ed2 commit d0cc805

1 file changed

Lines changed: 22 additions & 6 deletions

File tree

task01-change-and-revert-heading/style.css

Lines changed: 22 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,10 @@
11
body {
22
font-family: cursive;
3-
padding: 100px 20px;
3+
padding: 80px 20px;
44
background: linear-gradient(to right, lightgreen, lightblue);
55
text-align: center;
66
margin: 0;
7+
box-sizing: border-box;
78
}
89

910
.container {
@@ -17,9 +18,14 @@ body {
1718
background-color: white;
1819
}
1920

21+
h1 {
22+
font-size: 1.5rem;
23+
margin-bottom: 20px;
24+
}
25+
2026
button {
21-
font-size: 18px;
22-
padding: 8px 25px;
27+
font-size: 1rem;
28+
padding: 10px 80px;
2329
border: none;
2430
border-radius: 50px;
2531
background-color: cornflowerblue;
@@ -32,7 +38,17 @@ button:hover {
3238
background-color: rgb(58, 161, 164);
3339
}
3440

35-
h1 {
36-
font-size: 24px;
37-
margin-bottom: 20px;
41+
@media (max-width: 390px) {
42+
.container {
43+
box-sizing: border-box;
44+
}
45+
46+
h1 {
47+
font-size: 1.5rem;
48+
}
49+
50+
button {
51+
font-size: 1rem;
52+
padding: 10px 30px;
53+
}
3854
}

0 commit comments

Comments
 (0)