h1 text-align: center; : Header text « Tags « HTML / CSS






h1 text-align: center;

   


<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>*KHAKI*</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<style rel="stylesheet" type="text/css">

 h1 {
  padding: 20px 0 0 0;
  font: normal 1.4em verdana, tahoma, arial, sans-serif;
  text-transform: uppercase;
  letter-spacing: 3px;
  color: #acaf2c;
  background: inherit;
  text-align: center;
}

</style>

</head>
<body>
  <div id="banner">
    <h1> Company Name</h1>
  </div>

</body>
</html>

   
    
    
  








Related examples in the same category

1.h1, h2, h3 text-align: center;
2.h1 text-decoration: underline;
3.h1 text-shadow: 0.2em 0.2em;
4.H1 text-transform: uppercase;
5.h1 text-align: right;
6.H1 text-align: left;
7.h2 text-transform: none;
8.h2 text-transform: uppercase;
9.h1.complex { text-shadow: 3px 3px red, yellow -3px 3px 2px, 3px -3px }
10.Header text along with top links