Answer the question
In order to leave comments, you need to log in
How to make responsive image background and responsive border-radius?
codepen.io/anon/pen/JbELrq
I want to make an adaptive .inner so that the picture along with the rim decreases and increases depending on the resolution, while the border-radius is not distorted and the bg of the picture does not float away to unknown edges
Answer the question
In order to leave comments, you need to log in
Because you have it position: absolute
, I see only the only option
When the block reaches the right edge, through media query
left
replace with right: 0
. Then, when the left edge of the container starts to enter the block, again set the block width 100%
and left, right = 0 through the queue. It should work. And the height can be done through vw
.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question