Skip to content

Commit 51ec02a

Browse files
authored
Merge pull request #10 from shreyashrpawar/main
[Bug]: Hero Image Not Responsive on Mobile
2 parents 258cb0a + e0f0cbe commit 51ec02a

File tree

1 file changed

+40
-2
lines changed

1 file changed

+40
-2
lines changed

index.html

Lines changed: 40 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,45 @@
8787
grid-column: 2/4;
8888
grid-row: 2/3;
8989
}
90-
@media only screen and (max-width:791px){
90+
@media only screen and (max-width:500px){
91+
.home-content__buttons{
92+
display: flex;
93+
flex-direction: row;
94+
}
95+
.home-content__buttons .btn{
96+
margin: 10px;
97+
padding: 3px 5px;
98+
border-radius: 5px;
99+
}
100+
}
101+
@media only screen and (min-width:1000px) and (max-width:1500px){
102+
.home-content{
103+
position: absolute;
104+
/* top: 10em; */
105+
}
106+
.bunny{
107+
margin: 0px;
108+
position: absolute;
109+
/* top:38%; */
110+
right: 2rem;
111+
z-index: -10;
112+
}
113+
}
114+
115+
@media only screen and (max-width:1000px){
116+
.home-content{
117+
position: absolute;
118+
top: 10em;
119+
}
120+
.bunny{
121+
margin: 0px;
122+
position: absolute;
123+
/* top:38%; */
124+
right: 2rem;
125+
z-index: -10;
126+
}
127+
128+
91129
.outerdiv{
92130
display: none;
93131
}
@@ -144,7 +182,7 @@
144182
<img src="./images/cohort3mob.png" class="modal-img-mob" />
145183
</div>
146184
</div> -->
147-
<div style="display:relative">
185+
<div style="display:block">
148186
<header class="s-header">
149187
<div class="header-logo">
150188
<a class="site-logo" href="index.html">

0 commit comments

Comments
 (0)