Toggle navigation
Bootsnipp
Bootstrap
For
CSS Frameworks
Bootstrap
Foundation
Semantic UI
Materialize
Pure
Bulma
References
CSS Reference
Tools
Community
Page Builder
Form Builder
Button Builder
Icon Search
Dan's Tools
Diff / Merge
Color Picker
Keyword Tool
Web Fonts
.htaccess Generator
Favicon Generator
Site Speed Test
Snippets
Featured
Tags
By Bootstrap Version
4.1.1
4.0.0
3.3.0
3.2.0
3.1.0
3.0.3
3.0.1
3.0.0
2.3.2
Register
Login
"Pencil - Pure CSS Shape"
Bootstrap 4.0.0 Snippet by
KrishnaPraveenVemuri
4.0.0
Preview
HTML
CSS
View Full Screen
Forked from
Fork
Fork this
Parent
399
 
0 Fav
Post to Facebook
Tweet this
<link href="//maxcdn.bootstrapcdn.com/bootstrap/4.0.0/css/bootstrap.min.css" rel="stylesheet" id="bootstrap-css"> <script src="//maxcdn.bootstrapcdn.com/bootstrap/4.0.0/js/bootstrap.min.js"></script> <script src="//code.jquery.com/jquery-1.11.1.min.js"></script> <!------ Include the above in your HEAD tag ----------> <div class="container"> <div class="center"> <div class="pencil"> <p> Prakash Prajapati </p> <div class="top"></div> </div> </div> </div>
body { margin: 0; padding: 0; font-family: verdana; } .center { position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%) rotate(-45deg); } .pencil { width: 400px; height: 35px; background: #ffc334; border-top: 10px solid #ffd268; border-bottom: 10px solid #e2af38; } .pencil p { margin: 0; padding: 0; text-align: center; font-size: 8px; line-height: 20px; text-transform: uppercase; font-weight: bold; color: #d09200; } .pencil:before { content: ''; position: absolute; left: -80px; top: 0; border-style: solid; border-color: transparent #e29663 transparent transparent; border-width: 17px 40px 19px; } .pencil:after { content: ''; position: absolute; left: -80px; top: 0; border-style: solid; border-color: transparent #262626 transparent transparent; border-width: 17px 40px 18px; transform: scale(.3); } .top { position: absolute; top: 0; right: 0; height: 35px; width: 35px; background: #d76f6e; border-top: 10px solid #da8e8d; border-bottom: 10px solid #c85957; } .top:before { content: ''; position: absolute; top: -10px; right: -100%; width: -150%; height: 100%; background: #d76f6e; border-top: 10px solid #da8e8d; border-bottom: 10px solid #c85957; border-top-right-radius: 5px; border-bottom-right-radius: 5px; }
Questions / Comments:
Post
Posting Guidelines
Formatting
- Now
×
Close
Donate
BTC: 12JxYMYi6Vt3mx3hcmP3B2oyFiCSF3FhYT
ETH: 0xCD715b2E3549c54A40e6ecAaFeB82138148a6c76