I want to create an oval shape like the one below but failing
Also is there any way to insert an image inside this oval shaped css? that's my main objective.
My Demo
#oval {
margin: 0px 0 10 02px;
background: black;
-moz-border-radius: 100px / 50px;
-webkit-border-radius: 100px / 70px;
border-radius: 50px / 50px;
border-top-left-radius: 150px;
border-top-right-radius: 150px;
border-bottom-left-radius: 150px;
border-bottom-right-radius: 150px;
width: 80px;
height: 100px;
}
<!DOCTYPE html>
<html>
<head>
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js"></script>
<meta charset=utf-8 />
<title>JS Bin</title>
</head>
<body>
<div id="oval_parent">
<div id="oval"></div>
</div>
</body>
</html>
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…