Trying to make border-rounded div containing curved lines just like the screenshot below.
White boxes would be some texts as display:flex
applied on that div.
Not too sure to make the two curved lines in it.
Tried so far..
<!DOCTYPE html>
<html>
<head>
<style>
body {
background-color:#E7E9EB;
}
#myDIV {
height:300px;
background-color:#FFFFFF;
border: 1px solid black;
border-radius: 8% / 50%;
padding:20px;
position: relative;
display: flex;
justify-content: center;
}
#myDIV:after {
content: '';
height:300px;
width: 80%;
background-color:#FFFFFF;
border: 1px solid red;
border-radius: 8% / 50%;
padding:20px;
position: absolute;
bottom:0;
}
#text {
z-index: 999;
}
</style>
</head>
<body>
<h1>The border-radius Property</h1>
<div id="myDIV">
<p id="text">A demonstration of how to add rounded corners.</p>
</div>
</body>
</html>
Please help me out to achieve this design.
You need to sign in to view this answers