H1 text-align: left; : Header text « Tags « HTML / CSS






H1 text-align: left;

   

<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: 200px;
  margin: 0 auto;
  padding: 0;
  background: #f7f7f7 url(images/image00.jpg) no-repeat;
  color: #333;
}

#banner h1 {
  margin: 0;
  padding: 25px;
  text-align: left;
  background: transparent;
  color: #fff;
}

</style>

</head>
<body>

<div id="banner">
  <h1>Your 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: right;
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