public
Last active

Learning CSS3

  • Download Gist
dabblet.css
CSS
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24
/**
* Learning CSS3
* border-image
*/
 
html {
min-height:100%;
background: white url(http://leaverou.github.com/chainvas/img/background.jpg);
}
 
section {
max-width: 20em;
padding: 3em;
margin: 4em auto;
border: 20px solid transparent;
-webkit-border-image: url(http://leaverou.github.com/chainvas/img/cloth.svg) 33.33% round;
-moz-border-image: url(http://leaverou.github.com/chainvas/img/cloth.png) 33.33% round;
-o-border-image: url(http://leaverou.github.com/chainvas/img/cloth.svg) 33.33% round;
border-image: url(http://leaverou.github.com/chainvas/img/cloth.svg) 33.33% round fill;
font: 100%/1.5 sans-serif;
text-shadow: 0 1px white;
}
 
h1 { margin-top: 0 }
dabblet.html
HTML
1 2 3 4 5 6 7
<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>
settings.json
JSON
1
{"view":"split-vertical","prefixfree":"","page":"css"}

Please sign in to comment on this gist.

Something went wrong with that request. Please try again.