Skip to content

Commit a6d12b3

Browse files
committed
fix imag gallery
1 parent 7b1315a commit a6d12b3

File tree

3 files changed

+12
-26
lines changed

3 files changed

+12
-26
lines changed

95-headphones product page/index.html

+6-19
Original file line numberDiff line numberDiff line change
@@ -61,24 +61,12 @@ <h2>People Aren't Hearing All the Music</h2>
6161
<!-- Gallery -->
6262
<section class="section-gallery">
6363
<div class="gallery">
64-
<a href="https://i.ibb.co/CHLBZnp/gal2323.jpg" class="big"
65-
><img src="https://i.ibb.co/CHLBZnp/gal2323.jpg" alt=""
66-
/></a>
67-
<a href="https://i.ibb.co/4pBbhfY/gal39834.jpg" class="big"
68-
><img src="https://i.ibb.co/4pBbhfY/gal39834.jpg" alt=""
69-
/></a>
70-
<a href="https://i.ibb.co/xSnHP7g/gal43884.jpg" class="big"
71-
><img src="https://i.ibb.co/xSnHP7g/gal43884.jpg" alt=""
72-
/></a>
73-
<a href="https://i.ibb.co/QN6Bnrb/gal4958.jpg" class="big"
74-
><img src="https://i.ibb.co/QN6Bnrb/gal4958.jpg" alt=""
75-
/></a>
76-
<a href="https://i.ibb.co/dGZvj75/gal4545.jpg" class="big">
77-
<img src="https://i.ibb.co/dGZvj75/gal4545.jpg" alt=""
78-
/></a>
79-
<a href="https://i.ibb.co/S6FVFNt/gal74744.jpg" class="big"
80-
><img src="https://i.ibb.co/S6FVFNt/gal74744.jpg" alt=""
81-
/></a>
64+
<img src="https://i.ibb.co/CHLBZnp/gal2323.jpg" alt="" class="big" />
65+
<img src="https://i.ibb.co/4pBbhfY/gal39834.jpg" alt="" class="big" />
66+
<img src="https://i.ibb.co/xSnHP7g/gal43884.jpg" alt="" class="big" />
67+
<img src="https://i.ibb.co/QN6Bnrb/gal4958.jpg" alt="" class="big" />
68+
<img src="https://i.ibb.co/dGZvj75/gal4545.jpg" alt="" class="big" />
69+
<img src="https://i.ibb.co/S6FVFNt/gal74744.jpg" alt="" class="big" />
8270
</div>
8371
</section>
8472

@@ -136,7 +124,6 @@ <h3>Subscribe</h3>
136124
</div>
137125
</div>
138126
</footer>
139-
140127
<script src="script.js"></script>
141128
</body>
142129
</html>

95-headphones product page/script.js

Whitespace-only changes.

95-headphones product page/style.css

+6-7
Original file line numberDiff line numberDiff line change
@@ -168,18 +168,17 @@ img {
168168
grid-template-columns: repeat(5, 1fr);
169169
}
170170

171-
.section-gallery .gallery a:first-child {
171+
.section-gallery .gallery img:first-child {
172172
grid-row: 1/3;
173173
grid-column: 1/3;
174174
}
175175

176-
.section-gallery .gallery a:nth-child(2) {
176+
.section-gallery .gallery img:nth-child(2) {
177177
grid-column-start: 3;
178178
grid-column-end: 5;
179179
}
180180

181-
.section-gallery .gallery img,
182-
.section-gallery .gallery a {
181+
.section-gallery .gallery img {
183182
width: 100%;
184183
height: 100%;
185184
}
@@ -301,17 +300,17 @@ img {
301300
grid-template-columns: repeat(3, 1fr);
302301
}
303302

304-
.section-gallery .gallery a:first-child {
303+
.section-gallery .gallery img:first-child {
305304
grid-row: 1/1;
306305
grid-column: 1/1;
307306
}
308307

309-
.section-gallery .gallery a:nth-child(2) {
308+
.section-gallery .gallery img:nth-child(2) {
310309
grid-row: 2/2;
311310
grid-column: 2/4;
312311
}
313312

314-
.section-gallery .gallery a:last-child {
313+
.section-gallery .gallery img:last-child {
315314
display: none;
316315
}
317316

0 commit comments

Comments
 (0)