Created
February 19, 2014 10:23
-
-
Save gunnarbittersmann/9089413 to your computer and use it in GitHub Desktop.
heading with inline rounded corners
This file contains 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
/** | |
* heading with inline rounded corners | |
*/ | |
h1 | |
{ | |
background: orange; | |
padding: 0 1em; | |
border-radius: 1em 0 0 0; | |
overflow: hidden; | |
position: relative; | |
} | |
h1 > span[role="presentation"] | |
{ | |
position: absolute; | |
width: 100%; | |
background: white; | |
} | |
h1 > span[role="presentation"]::before | |
{ | |
content: "\A0"; | |
background: orange; | |
border-radius: 0 0 1em 0; | |
width: 1em; | |
position: absolute; | |
} |
This file contains 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
<h1>Das ist eine Überschrift, die bei schmalen Browserfenstern auch mehrzeilig werden kann | |
<span role="presentation"> </span> | |
</h1> |
This file contains 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 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-vertical","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