Skip to content

Instantly share code, notes, and snippets.

@agriboz
Created November 9, 2012 13:54
Show Gist options
  • Save agriboz/4045751 to your computer and use it in GitHub Desktop.
Save agriboz/4045751 to your computer and use it in GitHub Desktop.
Css Secrets "Lea Verou" Tip 4
p { margin: 0; padding: 0; }
div { background: linear-gradient(white 50%, beige 50%);
background-origin: content-box; /* İçeriğin başladığı alan */
background-size: 100% 3em; /*iki katı olması gerekiyor. line-height'in*/
font-size: 120%;
line-height: 1.5; /* background-size - 2 katı olmalı*/
}
<!-- More Css Secrets Tip 4 -->
<div>
<p>Let's try that thing</p>
<p>Let's try that thing</p>
<p>Let's try that thing</p>
<p>Let's try that thing</p>
</div>
{"view":"split","fontsize":"100","seethrough":"","prefixfree":"1","page":"all"}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment