Skip to content

Commit 42be625

Browse files
authored
Update style.css
1 parent 17e5826 commit 42be625

1 file changed

Lines changed: 63 additions & 4 deletions

File tree

task07-show-hide-paragraph/style.css

Lines changed: 63 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,8 @@ body {
66
}
77

88
.container {
9-
width: 30%;
9+
width: 90%;
10+
max-width: 500px;
1011
background-color: white;
1112
margin: auto;
1213
padding: 30px 20px 50px 20px;
@@ -17,8 +18,8 @@ body {
1718
.input-sec {
1819
display: flex;
1920
align-items: center;
20-
justify-content: space-around;
21-
gap: 10px;
21+
justify-content: center;
22+
gap: 30px;
2223
}
2324

2425
p {
@@ -33,4 +34,62 @@ button {
3334
border: 2px solid chartreuse;
3435
border-radius: 8px;
3536
background-color: chartreuse;
36-
}
37+
}
38+
39+
/* Below 600px */
40+
@media (max-width: 600px) {
41+
body {
42+
padding: 50px 20px;
43+
}
44+
45+
.container {
46+
padding: 25px 15px 40px 15px;
47+
border-radius: 30px;
48+
}
49+
50+
.input-sec {
51+
gap: 20px;
52+
}
53+
54+
p {
55+
font-size: 18px;
56+
}
57+
58+
button {
59+
font-size: 14px;
60+
padding: 8px 16px;
61+
}
62+
}
63+
64+
/* Below 400px */
65+
@media (max-width: 400px) {
66+
.input-sec {
67+
flex-direction: column;
68+
gap: 15px;
69+
}
70+
71+
p {
72+
font-size: 16px;
73+
}
74+
75+
button {
76+
width: 100%;
77+
}
78+
}
79+
80+
/* Below 260px */
81+
@media (max-width: 260px) {
82+
.container {
83+
padding: 20px 10px;
84+
border-radius: 20px;
85+
}
86+
87+
p {
88+
font-size: 14px;
89+
}
90+
91+
button {
92+
font-size: 13px;
93+
padding: 6px 12px;
94+
}
95+
}

0 commit comments

Comments
 (0)