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






h1 text-align: right;

   


<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">
#banner {
  height: 150px;
  padding: 0;
  margin-top: 0;
  color: #666;
  background: #7dce27 url(img/banner.jpg) no-repeat;
}

#banner h1 {
  margin-top: 0;
  padding: 5px 5px 0 0;
  font: 170% verdana, "Trebuchet MS", arial, tahoma, sans-serif;
  text-align: right;
  letter-spacing: 5px;
  color: #4B2207;
  background: inherit;
}


</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: center;
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