Skip to content

Commit f5b8c0d

Browse files
committed
gallery css fixed
1 parent 500b1ba commit f5b8c0d

2 files changed

Lines changed: 2 additions & 4 deletions

File tree

‎17-gallery/final/styles.css‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -208,7 +208,6 @@ Modal
208208
.prev-btn {
209209
position: absolute;
210210
top: 10rem;
211-
right: -2.5rem;
212211
transform: translateY(-50%);
213212
background: transparent;
214213
font-size: 2rem;

‎17-gallery/starter/styles.css‎

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -187,9 +187,8 @@ Modal
187187
background: rgb(0, 0, 0);
188188
transition: var(--transition);
189189
opacity: 0;
190-
display: grid;
191-
place-items: center;
192190
min-height: 100vh;
191+
overflow: scroll;
193192
}
194193
.modal.open {
195194
opacity: 1;
@@ -209,7 +208,6 @@ Modal
209208
.prev-btn {
210209
position: absolute;
211210
top: 10rem;
212-
right: -2.5rem;
213211
transform: translateY(-50%);
214212
background: transparent;
215213
font-size: 2rem;
@@ -233,6 +231,7 @@ Modal
233231
width: 80%;
234232
max-width: var(--max-width);
235233
margin: 0 auto;
234+
margin-top: 10rem;
236235
position: relative;
237236
}
238237
.main-img {

0 commit comments

Comments
 (0)