Created
October 20, 2013 21:00
-
-
Save dantz/7075271 to your computer and use it in GitHub Desktop.
Testing calc()
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* 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%; | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!-- 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> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// alert('Hello world!'); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{"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