Created
September 2, 2010 11:02
-
-
Save mnbi/562159 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> | |
<html dir='ltr' xmlns='http://www.w3.org/1999/xhtml'> | |
<head> | |
<meta content='text/html; charset=UTF-8' http-equiv='Content-Type'/> | |
<title>Check style priorities with CSS Contextual Selectors</title> | |
<link type='text/css' rel='stylesheet' href='priority.css' /> | |
<style type="text/css"> | |
h1#header1 { color: orange; } | |
h1 { color: red; } | |
</style> | |
</head> | |
<body> | |
<div class="outer"> | |
<div class="border" id="border1"> | |
<div class="inner"> | |
<h1>What color do you see?</h1> | |
<h1 id="header1">What color do you see?</h1> | |
</div> <!-- inner --> | |
</div> <!-- border --> | |
</div> <!-- outer --> | |
</body> | |
</html> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment