Created
January 26, 2012 14:55
-
-
Save LeaVerou/1683128 to your computer and use it in GitHub Desktop.
Learning CSS3
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
/** | |
* Learning CSS3 | |
* Multiple backgrounds, basic linear gradients | |
*/ | |
html { | |
background: linear-gradient(black, #444); | |
background-color: #222; | |
height: 100%; | |
} | |
body { | |
margin: 0; | |
background: url("http://lea.verou.me/sbook3/moon.png") no-repeat 100% 1em, | |
url("http://lea.verou.me/sbook3/stars.png") repeat-x 0 0, | |
url("http://lea.verou.me/sbook3/city.png") repeat-x bottom; | |
min-height: 100%; | |
} | |
section { | |
max-width: 20em; | |
padding-top:150px; | |
margin: 0em auto; | |
color: white; | |
font: italic 100%/1.5 'Palatino Linotype', Georgia, serif; | |
} | |
h1 { margin-top: 0 } |
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
<section> | |
<h1>Learning CSS3</h1> | |
<p>This is just some example content. Don’t even bother reading it, you will just waste your time. | |
Why do you keep reading? Do I have to use Lorem Ipsum to stop you from that? | |
Ok, here goes: Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. | |
Still reading? Oh gosh, you’re impossible. I’ll stop here to save you from yourself. | |
</section> |
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
{"view":"split-vertical","seethrough":"","prefixfree":"1","page":"css"} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment