S
S
Spartacus2020-04-29 16:17:20
HTML
Spartacus, 2020-04-29 16:17:20

How to do adaptive layout when there are 2 pictures?

Hello guys. I have a problem, help me solve it, with advice, whatever. I designed the layout, we have 2 pictures, one photo and with position: absolute the second picture. , everything seems to be normal on the laptop, I go from the phone, everything is crooked, I can’t defeat her for the life of me. Yes, even if I somehow catch the dimensions from MY phone, where is the guarantee that it will be good from others, or from a tablet? Tell me how to prescribe sizes or indents, maybe I'm doing something wrong ?? 5ea97de1845de330332757.png This is the original.5ea97e1450fb1960350109.png 5ea97e3a41e33878839443.jpeg

Answer the question

In order to leave comments, you need to log in

2 answer(s)
C
chelnokov_a, 2020-04-29
@chelnokov_a

You need to position the icon relative to the photo. To do this, use position: relative.
Those. Position the container in the center. margin: 0 auto;
Inside it is a div for which you set position: relative
Already in this div you place your photo and icon. Position the icon absolutely

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question