Answer the question
In order to leave comments, you need to log in
Answer the question
In order to leave comments, you need to log in
https://jsfiddle.net/yam6o8a5/
The main thing is to fit the background image correctly.
Essence: to join the background image of two elements. The pseudo-element has alignment (50% 100%) in the center and bottom, and the block itself has the opposite (50% 0%) in the center and top. And then the joint will be correct.
But in general, everything is through the before pseudo-element.
PS: In such a solution, it will be possible to use a non- uniform background .
I would cut the white part into an image and overlay it on top of the blue part with background-size: cover (or whatever value you want). Since the circle must also have a background, and continue in the bottom block, this is the most cross-browser solution.
And ask
.line{
height:50px;
width:100%;
background:#000;
}
.circle{
width:80px;
height:80px;
position:absolute;
left:50%;
margin-left:-40px;
bottom:10px;
background:#000;
}
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question