Created
October 14, 2014 10:47
-
-
Save pankajpatel/de49feab835ef11802f7 to your computer and use it in GitHub Desktop.
Arrow Head with CSS and Pseudo Element
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
<style type="text/css"> | |
.profile{ | |
display: inline-block; | |
padding: 10px; | |
border:1px solid #ccc; | |
border-radius: 2px; | |
margin-top: 15px; | |
position: relative; | |
} | |
.profile .name{ | |
margin: 0px; | |
display: block; | |
padding-bottom: 5px; | |
margin-bottom: 3px; | |
border-bottom: 1px dotted #ccc; | |
} | |
.profile::before{ | |
content: ''; | |
display: block; | |
width: 0; | |
height: 0; | |
border: 10px solid transparent; | |
border-bottom-color: #ccc ; | |
border-top: 0px; | |
position: absolute; | |
top: -10px; | |
} | |
</style> | |
<div class="profile"> | |
<p class="name">Pankaj Patel</p> | |
<small><a href="http://github.com/pankajpatel">http://github.com/pankajpatel</a></small> | |
</div> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment