Subclass Selector : Class Selector : Style Basics HTML CSS TUTORIALS


HTML CSS TUTORIALS » Style Basics » Class Selector »

 

Subclass Selector


 


<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
  "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title></title>
<style type="text/css">
* .button {
  width: 175px;
  padding: 3px 10px;
  margin: 20px 0;
  text-align: center;
  font-weight: bold;
  margin-left: 50px;
  line-height: normal;
}

* .button.square {
  color: darkblue;
  background-color: #ccc;
  border-left: 1px solid dimgray;
  border-right: 2px solid black;
  border-top: 1px solid dimgray;
  border-bottom: 2px solid black;
}


</style>
</head>
<body>

<h1>Subclass Selector</h1> 

<div> 
<p class="button square">Square</p> 



</div> 


</body
</html>

 



HTML code for linking to this page:

Follow Navioo On Twitter

HTML CSS TUTORIALS

 Navioo Style Basics
» Class Selector