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
"Card2"
Bootstrap 3.0.0 Snippet by
vitasarts
3.0.0
card
Preview
HTML
CSS
View Full Screen
Fork
Fork this
1.6K
 
0 Fav
Post to Facebook
Tweet this
<link href="//netdna.bootstrapcdn.com/bootstrap/3.0.0/css/bootstrap.min.css" rel="stylesheet" id="bootstrap-css"> <script src="//netdna.bootstrapcdn.com/bootstrap/3.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="card hovercard"> <img src="http://placehold.it/300x200/000000/&text=Header" alt=""/> <div class="avatar"> <img src="http://placehold.it/80X80/333333/&text=Head" alt="" /> </div> <div class="info"> <div class="title"> The Title </div> <div class="desc">Lorem ipsum</div> <div class="desc">Lorem ipsum</div> <div class="desc">Lorem ipsum</div> </div> <div class="bottom"> <button class="btn btn-default">Button</button> </div> </div> </div>
.card { padding-top: 20px; margin: 10px 0 20px 0; background-color: #ffffff; border: 1px solid #d8d8d8; border-top-width: 0; border-bottom-width: 2px; -webkit-border-radius: 3px; -moz-border-radius: 3px; border-radius: 3px; -webkit-box-shadow: none; -moz-box-shadow: none; box-shadow: none; -webkit-box-sizing: border-box; -moz-box-sizing: border-box; box-sizing: border-box; } .card.hovercard { position: relative; width: 300px; padding-top: 0; overflow: hidden; text-align: center; background-color: #fff; } .card.hovercard img { width: 300px; height: 200px; } .card.hovercard .avatar { position: relative; top: -40px; margin-bottom: -40px; } .card.hovercard .avatar img { width: 80px; height: 80px; max-width: 80px; max-height: 80px; -webkit-border-radius: 50%; -moz-border-radius: 50%; border-radius: 50%; } .card.hovercard .info { padding: 4px 8px 10px; } .card.hovercard .info .title { margin-bottom: 4px; font-size: 24px; line-height: 1; color: #262626; vertical-align: middle; } .card.hovercard .info .desc { overflow: hidden; font-size: 12px; line-height: 20px; color: #737373; text-overflow: ellipsis; } .card.hovercard .bottom { padding: 0 20px; margin-bottom: 17px; } .card.people .card-bottom { position: absolute; bottom: 0; left: 0; display: inline-block; width: 100%; padding: 10px 20px; line-height: 29px; text-align: center; -webkit-box-sizing: border-box; -moz-box-sizing: border-box; box-sizing: border-box; }
Related:
See More
Free Template
Awesome Landing Page
Questions / Comments:
Post
Posting Guidelines
Formatting
- Now
×
Close
Donate
BTC: 12JxYMYi6Vt3mx3hcmP3B2oyFiCSF3FhYT
ETH: 0xCD715b2E3549c54A40e6ecAaFeB82138148a6c76