W
W
webjuli2019-09-09 18:15:38
css
webjuli, 2019-09-09 18:15:38

How to make a block wrap around an image, an adaptive curvature of the side of the block, an adaptive arch for the logo?

It is necessary to make such an adaptive bend above the logo, I sort of made the bend, but the edge is uneven and the bend is not adaptive, it is necessary that when the page is reduced / enlarged, the bend remains above the logo. What is the best and right way to do it? I did the bend of the white block like this, and it has an uneven edge and is not
responsive .head {
background: radial-gradient(ellipse 190% 1300% at 25.2% 118%, transparent 5.5%, white 40px);
}
and I just drew an oval
.oval {
width: 265px;
height: 70px;
background: #969696;
border-radius: 50%
color:white;
display:flex;
justify-content: center;
position: relative;
}
The first image is how to do it, the second and third how I did it.5d766b41b6fa7857828532.png5d766b772b152652126625.png5d766bcfa9152501937496.png

Answer the question

In order to leave comments, you need to log in

3 answer(s)
O
OxCom, 2019-09-10
@webjuli

Try playing around with it.

S
strelok011, 2019-09-09
@strelok011

if the wrapping is not uniform (judging by the screenshot), then you need to add relativity to the dark gray block, and make the wrapping on the :before pseudo-element with absolute positioning.

A
Alexander Gamov, 2019-09-09
@slowdream

Set a border for the logo of the same color as the background under it.

{
border: 5px #CCC;
}

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question