Skip to content

Instantly share code, notes, and snippets.

@LeaVerou
Created January 26, 2012 14:55
Show Gist options
  • Save LeaVerou/1683128 to your computer and use it in GitHub Desktop.
Save LeaVerou/1683128 to your computer and use it in GitHub Desktop.
Learning CSS3
/**
* 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 }
<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>
{"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