Created
March 21, 2013 14:08
-
-
Save maskingtape/5213275 to your computer and use it in GitHub Desktop.
SVG Data URI Background borders
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
/** | |
* SVG Data URI Background borders | |
*/ | |
body{ | |
background: #fff; | |
min-height: 100%; | |
font-family: sans-serif; | |
} | |
h1 { | |
font-size: 3em; | |
border-bottom: 4px solid black; | |
-webkit-border-image: url('data:image/svg+xml;utf8,<svg width="170" height="4" xmlns="http://www.w3.org/2000/svg" preserveAspectRatio="xMinYMin" class="logo"><rect stroke="#000000" stroke-opacity="0" id="svg_1" height="3.7702" width="33.93178" y="0" x="135.7271" stroke-linecap="null" stroke-linejoin="null" stroke-dasharray="null" stroke-width="null" fill="#ff00ff"/><rect id="svg_2" stroke="#000000" stroke-opacity="0" height="3.7702" width="33.93178" y="0" x="0" stroke-linecap="null" stroke-linejoin="null" stroke-dasharray="null" stroke-width="null" fill="#ff0000"/><rect id="svg_3" stroke="#000000" stroke-opacity="0" height="3.7702" width="33.93178" y="0" x="33.93178" stroke-linecap="null" stroke-linejoin="null" stroke-dasharray="null" stroke-width="null" fill="#00ff00"/><rect id="svg_4" stroke="#000000" stroke-opacity="0" height="3.7702" width="33.93178" y="0" x="101.79533" stroke-linecap="null" stroke-linejoin="null" stroke-dasharray="null" stroke-width="null" fill="#0000ff"/><rect id="svg_5" stroke="#000000" stroke-opacity="0" height="3.7702" width="33.93178" y="0" x="67.86356" stroke-linecap="null" stroke-linejoin="null" stroke-dasharray="null" stroke-width="null" fill="#ff7f00"/></svg>') 0 0 4 0 repeat; | |
} |
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>Test text</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","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