Created
April 4, 2012 21:58
-
-
Save dazld/2306007 to your computer and use it in GitHub Desktop.
CSS callouts
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
/** | |
* CSS callouts | |
*/ | |
#frame { | |
width: 300px; | |
padding: 12px; | |
margin: 0 auto; | |
margin-top: 12px; | |
border: 1px solid #ccc; | |
font-size: 14px; | |
} | |
h1 { | |
font-size: 18px; | |
background: #ccc; | |
padding: 4px 12px; | |
position: relative; | |
left: -30px; | |
display: block; | |
z-index: 21; | |
} | |
h1:after { | |
content: ''; | |
background: -moz-linear-gradient(61deg, transparent 12px, #CC0000 10px) repeat scroll 0 0 transparent; | |
width: 18px; | |
height: 14px; | |
position: absolute; | |
left: 0; | |
bottom: -14px; | |
z-index: -1; | |
} |
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
<!-- content to be placed inside <body>…</body> --> | |
<div id="frame"> | |
<h1>Some bad ass titles</h1> | |
<p>Some amazing text about how awesome this stuffs is. CSS3 totally pwnz j00.</p> | |
<h1>Some more bad ass titles which split across lines</h1> | |
<p>Some amazing text about how awesome this stuffs is. CSS3 totally pwnz j00.</p> | |
</frame> |
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","seethrough":"","prefixfree":"1","page":"css"} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment