Last active
August 29, 2015 14:20
-
-
Save gunnarbittersmann/3d82c7a954ac5632ec4c to your computer and use it in GitHub Desktop.
Balken
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
| /** | |
| * Balken | |
| * http://forum.selfhtml.org/self/2015/may/03/box-soll-aus-box-ragen-position-abolute/1639298#m1639298 | |
| */ | |
| * { box-sizing: border-box } | |
| html | |
| { | |
| overflow-x: hidden; | |
| height: 100%; | |
| background: red; | |
| font: 1.5em Georgia; | |
| padding: 0 1em; | |
| } | |
| body | |
| { | |
| max-width: 42em; | |
| min-height: 100%; | |
| margin: auto; | |
| padding: 1em; | |
| background: white; | |
| } | |
| .balken | |
| { | |
| margin: 0 -101em; /* -(padding+border) */ | |
| padding: 2em 1em 1em; | |
| border: solid black; | |
| border-width: 0 100em; | |
| } |
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
| <p>Das ist ein Absatz über dem Balken.</p> | |
| <p>Das ist ein Absatz über dem Balken.</p> | |
| <section class="balken"> | |
| <p>Das ist ein Absatz in dem Balken.</p> | |
| <p>Das ist ein Absatz in dem Balken.</p> | |
| </section> | |
| <p>Das ist ein Absatz unter dem Balken.</p> | |
| <p>Das ist ein Absatz unter dem Balken.</p> |
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":"css"} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment