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






H1 background: inherit;

   

<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 {
  margin: 0 0 10px 0;
  font: normal 1.4em verdana, arial, tahoma, sans-serif;
  text-transform: uppercase;
  color: #acaf2c;
  background: inherit;
}

</style>

</head>
<body>

   <h1>Welcome to <span style="font-weight:bold; color:#ACAF2C;">Test</span> Template</h1>


</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: transparent;
5.h2 background: inherit;
6.h2 background: inherit; 2