Page Widget How to - Create Ellipse shape








Question

We would like to know how to create Ellipse shape.

Answer


<!DOCTYPE html>
<html>
<head>
<style type='text/css'>
.ballons {<!--   www  .  j av a2s .  c  om-->
  float: left;
  margin: 10px 8px 0 0;
  height: 150px;
  width: 100px;
  border-radius: 30px;
  border: 3px solid #fff;
  border-radius: 50%;
  -ms-border-radius: 50%;
  -o-border-radius: 50%;
  -moz-border-radius: 50%;
  -webkit-border-radius: 50%;
  background: red;
  color: #fff;
  text-align: center;
  -moz-box-shadow: 1px 1px 3px 3px #ccc;
  -webkit-box-shadow: 1px 1px 3px 3px #ccc;
  box-shadow: 1px 1px 3px 3px #ccc;
}
</style>
</head>
<body>
  <span class="ballons"></span>
</body>
</html>

The code above is rendered as follows: