Created
April 14, 2014 23:14
-
-
Save landru247/10689313 to your computer and use it in GitHub Desktop.
CSS: Callout - with dropshadow
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
.call-out { | |
background: #fff; | |
margin: 0 auto; | |
padding: 20px; | |
position: relative; | |
box-shadow: 0 3px 7px rgba(0,0,0,0.4); | |
border-radius: 5px; | |
border-top: solid 1px #e3e3e3; | |
} | |
.call-out:after { | |
border-radius: 2px; | |
content: ""; | |
position: absolute; | |
box-shadow: 2px 2px 4px rgba(0,0,0,0.3); | |
-moz-transform: rotate(45deg); | |
-webkit-transform: rotate(45deg); | |
bottom: -14px; | |
border-width: 14px; | |
border-style: solid; | |
border-color: transparent #fff #fff transparent; | |
right: 50px; | |
} | |
<div class="call-out"> | |
<p>"Lorem ipsum dolor sit amet, consectetur adipiscing elit. Donec aliquam fringilla velit, ut egestas sapien malesuada blandit. Aliquam eleifend lobortis laoreet. Nulla vel justo arcu. Aliquam iaculis felis sit amet leo elementum, eget ultrices nibh dapibus. Nunc adipiscing at mauris placerat ornare. Sse potenti. Cum sociis natoque penatibus et magnis dis parturient."</p> | |
</div> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment