Created
December 20, 2008 01:56
-
-
Save clairvy/38203 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 "-//IETF//DTD HTML//EN"> | |
<html> | |
<head> | |
<style type="text/css"> | |
h1, h2 { | |
color : blue; | |
font-style : italic; | |
} | |
.WARNING { | |
font-weight : bold; | |
font-size : 150%; | |
margin : 0 1in 0 1in; | |
background-color : yellow; | |
border : solid red 8px; | |
padding : 10px; | |
} | |
.WARNING h1, .WARNING h2 { | |
color : green; | |
text-align : center; | |
} | |
#P23 { | |
text-align : center; | |
text-transform : uppercase; | |
} | |
</style> | |
<title></title> | |
</head> | |
<body> | |
<h1>Cascading Style Sheets Demo</h1> | |
<div class="WARNING"> | |
<h2>Warning</h2> | |
This is a warning! | |
Notice how it grabs your attention with its bold text and bright colors. | |
Also notice that the heading is centerd and in blue italics. | |
</div> | |
<p id="P23"> | |
This paragraph is centered<br> | |
and appears in uppercase letters.<br> | |
<span style="text-transform : none;"> | |
Here we explicitly use an inline style to override the uppercase letters. | |
</span> | |
</p> | |
<hr> | |
<address></address> | |
<!-- hhmts start --> Last modified: Sat Dec 20 10:54:13 +0900 2008 <!-- hhmts end --> | |
</body> | |
</html> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment