demi-cercle CSS
div {
width: 150px;
height: 75px;
border-bottom-left-radius: 510px;
border-bottom-right-radius: 510px;
background: #ECA03D;
}
JérômeW
div {
width: 150px;
height: 75px;
border-bottom-left-radius: 510px;
border-bottom-right-radius: 510px;
background: #ECA03D;
}
#circle {
width: 100px;
height: 100px;
background: red;
border-radius: 50%
}
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content=
"width=device-width, initial-scale=1.0">
<title>Semi Circle</title>
<style>
* {
margin: 0;
padding: 0;
background-color: white;
}
/* Using the border-radius property
to draw the semi-circle*/
div {
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
height: 100px;
width: 200px;
border-radius: 150px 150px 0 0;
background-color: green;
}
</style>
</head>
<body>
<div></div>
</body>
</html>