V
V
VESKING2018-03-07 17:40:01
css
VESKING, 2018-03-07 17:40:01

How to make responsive links with images?

In general, there is a section "Our services", in section 4 links with photos. For a long time I was tormented, it turned out through flex to persuade the browser to move the 4th link to the second row with the screen width I needed. Everything seems to be fine. But what about mobile devices? Let's say up to 500px these links still look normal, but after that they start to overlap each other (which is understandable, because I did not specify the width and height parameters in the media queries).
A question. Is it possible to somehow reduce the size of the block along with its content (and this is the background-image) by a percentage, so as not to resize everything that is inside?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
M
Maxim Timofeev, 2018-03-07
@webinar

I think you really need to read this:
htmlbook.ru/css/value/media
And see how the greats of this world make grids:
getbootstrap.com/docs/4.0/layout/grid

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question