first question is here so be kind! I am designing a website and I was asked to photograph the images at sinusoidal boundaries. So far, I have been communicating with him, creating a container div with 3 divs: the first for a downward bend, the second just straight (I will consider the idea of removing it later), and the third up bend.
Here is a screenshot of the current state.
So this is the current code:
.border {
overflow: hidden;
align-items: center;
height: auto;
width: 100%;
display: flex;
}
.bord1 {
margin-top: 4vh;
height: 4vh;
flex: 1;
border-top: solid 5px;
border-color: #e4ae03 rgba(0, 0, 0, 0) transparent transparent;
border-radius: 100% 0 0 0;
z-index: 999;
}
.bord2 {
margin-top: 4vh;
flex: 1;
display: inline;
height: 4vh;
border-top: 5px solid #e4ae03;
}
.bord3 {
margin-top: -4vh;
flex: 1;
height: 4vh;
display: block;
border-bottom: 5px solid;
border-color: transparent transparent #e4ae03 transparent;
border-radius: 0 0 100% 0;
}
<div class="border">
<div class="bord1 top top-bord"></div>
<div class="bord2 top top-bord"></div>
<div class="bord3 bottom"></div>
</div>
Run codeHide resultI am really trying to figure out how to get the last segment of white because it is created by rounding the lower right corner, so the white background should be “outside” the div.
I know this might be a dumb question, but here it is! Thank!
* Edit: Sorry, that’s the image of what I'm trying to do
] 2