h2 background: inherit; 2 : Header background « Tags « HTML / CSS






h2 background: inherit; 2

   

<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">

#content {
  padding: 10px;
  margin-left: 200px;
  margin-bottom: 10px;
  color: #666;
  background: #fff;
}

#content h2 {
  margin: 0 0 0 0;
  font: 130% verdana, "Trebuchet MS", arial, tahoma, sans-serif;
  padding: 5px;
  text-transform: uppercase;
  letter-spacing: 5px;
  color: #833B0B;
  background: inherit;
}

</style>

</head>
<body>

  <div id="content">
    <h2>Welcome to <span style="color:#B29B35;"> Test</span> Template</h2>
  </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.H1 background: transparent;
6.h2 background: inherit;