Last active
November 20, 2015 16:52
-
-
Save gunnarbittersmann/60a09152cb6a0e567a1f to your computer and use it in GitHub Desktop.
heading with text background
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
/** | |
* heading with text background | |
* https://forum.selfhtml.org/self/2015/jan/22/zweizeilige-ueberschrift/1630398#m1630398 | |
* see also http://codepen.io/gunnarbittersmann/pen/YyMGLa | |
*/ | |
h1 | |
{ | |
font: normal 2.5em/1.5 Georgia, serif; | |
padding: 0 0.5em 0.1em; | |
display: inline; | |
background: orange; | |
box-decoration-break: clone; | |
} |
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
<h1>This is a very long heading which does not fit into a single line but spreads over multiple lines</h1> |
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-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