File tree Expand file tree Collapse file tree
task07-show-hide-paragraph Expand file tree Collapse file tree Original file line number Diff line number Diff line change 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 ;
1718.input-sec {
1819 display : flex;
1920 align-items : center;
20- justify-content : space-around ;
21- gap : 10 px ;
21+ justify-content : center ;
22+ gap : 30 px ;
2223}
2324
2425p {
@@ -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+ }
You can’t perform that action at this time.
0 commit comments