Skip to content

Commit 06a697b

Browse files
author
Aman Kumar Sinha
committed
Making Responsive
1 parent 9450b88 commit 06a697b

1 file changed

Lines changed: 32 additions & 3 deletions

File tree

project-5/insta-story.css

Lines changed: 32 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
body {
22
background-color: rgb(209, 200, 173);
3+
overflow: hidden;
34
}
45

56
main {
@@ -12,12 +13,14 @@ main {
1213
display: flex;
1314
align-items: center;
1415
justify-content: center;
15-
padding: 1rem;
16+
padding: 2rem;
1617
flex-direction: column;
18+
height: 90vh;
19+
width: 100%;
1720

1821
& .card {
19-
height: 55rem;
20-
width: 33rem;
22+
height: 100%;
23+
width: 40%;
2124
box-shadow: rgba(50, 50, 93, 0.25) 0px 13px 27px -5px,
2225
rgba(0, 0, 0, 0.3) 0px 8px 16px -8px;
2326
border-radius: 1rem;
@@ -82,3 +85,29 @@ main {
8285
}
8386
}
8487
}
88+
89+
@media (width <= 992px) {
90+
main {
91+
& .container {
92+
padding: 0;
93+
height: 100vh;
94+
& .card {
95+
width: 100%;
96+
height: 100%;
97+
}
98+
}
99+
}
100+
}
101+
102+
@media (width <= 576px) {
103+
main {
104+
& .container {
105+
padding: 0;
106+
height: 100vh;
107+
& .card {
108+
width: 100%;
109+
height: 100%;
110+
}
111+
}
112+
}
113+
}

0 commit comments

Comments
 (0)