Answer the question
In order to leave comments, you need to log in
Boostsram. Crooked website needs to be fixed. How to transform a grid with images?
www.luxtort.ru/statii here is the page
the site is laid out on the buststststsrame
On the page there are a couple of blocks in which links-pictures in the form of a grid.
their code is like this:
<span>
<a href="">
<img src="kortinka.жипег" />
</a>
</span>
Answer the question
In order to leave comments, you need to log in
Remove width and height from images in HTML.
span.moloko a {
/* overflow: hidden; */
/* max-height: 160px; */
overflow: hidden;
width: 240px;
height: 240px;
display: block;
}
.moloko {
display: inline-block;
background-color: #fff;
position: relative;
}
span.moloko img {
vertical-align: top;
width: 100%;
height: 100%;
}
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question