CSS-Ribbon mit SASS
Original: http://jsfiddle.net/yellowled/xMx5X/
HTML
<div>
<h3>CSS Ribbon</h3>
<p>Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Aenean commodo ligula eget dolor. Aenean massa. Cum sociis natoque penatibus et magnis dis parturient montes, nascetur ridiculus mus. Donec quam felis, ultricies nec, pellentesque eu, pretium quis, sem. Nulla consequat massa quis enim.</p>
</div>
SCSS
body {
background: #ccc;
}
div {
background: #fafafa;
margin: 2em;
max-width: 15em;
padding: 10px;
}
h3 {
background: #bada55;
color: #222;
margin-left: -20px;
margin-right: -20px;
position: relative;
margin-bottom: 4px;
padding: 4px 0;
text-align: center;
}
h3:before, h3:after {
content: "";
position: absolute;
top: 100%;
left: 0;
border-width: 0 10px 10px 0;
border-style: solid;
border-color: transparent #75901f;
}
h3:after {
left: auto;
right: 0;
border-width: 0 0 10px 10px;
}