Page Widget How to - Create Rounded border








Question

We would like to know how to create Rounded border.

Answer


<!DOCTYPE html>
<html>
<head>
<style type='text/css'>
div {<!-- w w w .j a v a2  s  .  com-->
  background: #C00;
  color: #000;
  border-radius: 20px;
  height: 100px;
  width: 200px;
  font-size: 24px;
  overflow: hidden;
}
</style>
</head>
<body>
  <div>Hello world</div>
</body>
</html>

The code above is rendered as follows: