H1 background: transparent; : Header background « Tags « HTML / CSS






H1 background: transparent;

   

<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.h2 background-image: url(http://java2s.com/style/logo.png);
2.h2 background-repeat: repeat-x;
3.h2 background-position: bottom;
4.H1 background: inherit;
5.h2 background: inherit;
6.h2 background: inherit; 2