<!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" xml:lang="cs" lang="cs">
<head>
  <meta http-equiv="content-type" content="text/html; charset=windows-1250" />
  <title>Specifinost selektor</title>
  <style type="text/css">
    body {
      font-family: Arial, Verdana, sans-serif;
      font-size: small;
      width: 400px;
      margin: 0 auto;      
	  padding: 15px;
    }
	li { 						/* nejmn specifick selektor m nejmn vhu */
	  border: 1px solid red;
	}
    li.silnejsi { 				/* specifitj selektor pepe styl mn specirfickho selektoru */
	  border: 5px dotted blue; 
	}
    #menu li { 
	  border: 1px solid red;    /* nejvce specifick selektor pepe vechny styly mn specifickch seleketor */
	}
  </style>  
</head>
<body>
<p>Pklad 1 - selektor <code>li.silnejsi</code> pepe styl selektoru <code>li</code>:</p>
<ul>
  <li>Bn element li</li>
  <li class="silnejsi">Bn element li</li>
  <li>Bn element li</li>
  <li>Bn element li</li>
</ul>
<p>Pklad 2 - selektor <code>#menu li</code> pepe styl selektoru <code>li.silnejsi</code>:</p>
<ul id="menu">
  <li>Bn element li</li>
  <li class="silnejsi">Bn element li</li>
  <li>Bn element li</li>
  <li>Bn element li</li>
</ul>

</body>
</html>
