Skip to content

Instantly share code, notes, and snippets.

@dazld
Created April 4, 2012 21:58
Show Gist options
  • Save dazld/2306007 to your computer and use it in GitHub Desktop.
Save dazld/2306007 to your computer and use it in GitHub Desktop.
CSS callouts
/**
* 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;
}
<!-- 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>
{"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