Skip to content

Instantly share code, notes, and snippets.

@dantz
Created October 20, 2013 21:00
Show Gist options
  • Save dantz/7075271 to your computer and use it in GitHub Desktop.
Save dantz/7075271 to your computer and use it in GitHub Desktop.
Testing calc()
/**
* Testing calc()
*/
body {
background: #f06;
background: linear-gradient(45deg, #f06, yellow);
min-height: 100%;
padding: 0;
margin: 0;
}
section {
margin: 1em auto;
background: rgba(255,255,255,0.5);
}
.l-vise {
_padding: 1em calc(10%);
padding: 1em 10%;
}
.l-vise-narrow {
padding: 1em 20%;
}
<!-- content to be placed inside <body>…</body> -->
<section class="l-vise"><h2>Hier könnte eine Headline stehen</h2><p>Dies ist ein Platzhaltertext</p></section>
<section class="l-vise l-vise-narrow"><h2>Test</h2><p>Dies ist ein Platzhaltertext<p></section>
// alert('Hello world!');
{"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