Skip to content

Instantly share code, notes, and snippets.

@yoksel
Last active August 29, 2015 13:56
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save yoksel/8839400 to your computer and use it in GitHub Desktop.
Save yoksel/8839400 to your computer and use it in GitHub Desktop.
A Pen by yoksel.
<html>
<head>
<script src="http://cdnjs.cloudflare.com/ajax/libs/prefixfree/1.0.7/prefixfree.min.js"></script>
<meta charset=utf-8 />
<title>Gradients</title>
</head>
<body>
<p>Cras dapibus, leo a euismod luctus, nibh orci tempor mi, non accumsan odio nunc sit amet magna. Curabitur gravida dolor non mi mollis, vitae vehicula ante blandit. Curabitur congue neque sapien, at vestibulum metus lacinia aliquet. Nam luctus eget enim nec dapibus. Donec magna dolor, lacinia non mi ac, bibendum porttitor sem. Ut aliquam augue ut eleifend aliquet. Cras mattis placerat nibh nec venenatis.</p>
</body>
</html>
HTML {
height: 100%;
}
BODY {
background: linear-gradient(90deg,
rgba(255, 255, 255, 0) 1.8em, rgba(135, 206, 235, .5) 2em)
4em 0 repeat-y,
linear-gradient(
rgba(255,255,255, 0) 1.9em, rgba(0, 0, 0, .15) 2em)
0 0;
background-size: 2em 2em;
background-color: ivory;
font: 16px/2 'Trebuchet MS', Verdana, sans-serif;
}
P {
margin: 2.5em 3em 1em 8em;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment