Page Widget How to - Create Headline Style








Question

We would like to know how to create Headline Style.

Answer


<!DOCTYPE html>
<html>
<head>
<style type='text/css'>
body {<!--from   w w w.  j a  v  a2  s .c om-->
  background: #ccc;
}

.tagline {
  width: 60px;
  margin: 5px;
}

.tagline h1 {
  color: #fff;
  background: #000;
  padding: 4px 10px;
  display: inline-block;
  font-size: 20px;
  line-height: 30px;
  text-transform: uppercase;
}
</style>
</head>
<body>
  <div class="tagline">
    <h1>Oh</h1>
  </div>
</body>
</html>

The code above is rendered as follows: