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
"Adorable Pets to Follow"
Bootstrap 4.1.1 Snippet by
karanbohara0
4.1.1
Preview
HTML
View Full Screen
Fork
Fork this
344
 
0 Fav
Post to Facebook
Tweet this
<link href="//maxcdn.bootstrapcdn.com/bootstrap/4.1.1/css/bootstrap.min.css" rel="stylesheet" id="bootstrap-css"> <script src="//maxcdn.bootstrapcdn.com/bootstrap/4.1.1/js/bootstrap.min.js"></script> <script src="//cdnjs.cloudflare.com/ajax/libs/jquery/3.2.1/jquery.min.js"></script> <!------ Include the above in your HEAD tag ----------> <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>Cute Pets</title> <style> .container { border: 1px solid rgb(188, 188, 188); border-radius: 4px; width: 280px; box-shadow: 1px 1px 1px 1px rgb(211, 209, 209); padding: 10px; } .pet { display: flex; align-items: center; margin-bottom: 10px; } .img-cat { height: 40px; width: 40px; border-radius: 50%; margin-right: 10px; } .info { flex: 1; } .name { font-weight: bold; } .description { color: rgb(131, 127, 127); } .btn-follow { background-color: rgb(0, 153, 255); border: none; border-radius: 3px; color: white; font-size: 12px; font-family: Arial; font-weight: bold; padding: 5px 10px; transition: background-color 0.15s, color 0.15s; } .btn-follow:hover { background-color: white; color: rgb(0, 153, 255); cursor: pointer; } </style> </head> <body> <div class="container"> <div class="pet"> <img class="img-cat" src="https://images.unsplash.com/photo-1514888286974-6c03e2ca1dba" alt="Oliver"> <div class="info"> <div class="name">Oliver</div> <div class="description">the cat</div> <div class="description">Popular</div> </div> <button class="btn-follow">Follow</button> </div> <div class="pet"> <img class="img-cat" src="https://media.istockphoto.com/id/1456979356/photo/bengal-cat-and-soft-toy-sleep-together-pets-animal-care.webp?b=1&s=170667a&w=0&k=20&c=FyCzrzRfqPxZDMcvtXb0TOLrSPnPJfp5bCBSFpk8Tp8=" alt="Mimi"> <div class="info"> <div class="name">Mimi</div> <div class="description">Sleepy Cat</div> <div class="description">Popular</div> </div> <button class="btn-follow">Follow</button> </div> <div class="pet"> <img class="img-cat" src="https://media.istockphoto.com/id/1490277576/photo/close-up-boxer-dog-sitting-in-a-public-park.webp?b=1&s=170667a&w=0&k=20&c=hlvlUDKpqV9VuHc0cbWpro-cxVHxUrXrwuQKCgio0Bo=" alt="Rex"> <div class="info"> <div class="name">Rex</div> <div class="description">Happy Bulldog</div> <div class="description">Popular</div> </div> <button class="btn-follow">Follow</button> </div> </div> </body> </html>
Related:
See More
Template
Vue Paper Dashboard 2 PRO
Questions / Comments:
Post
Posting Guidelines
Formatting
- Now
×
Close
Donate
BTC: 12JxYMYi6Vt3mx3hcmP3B2oyFiCSF3FhYT
ETH: 0xCD715b2E3549c54A40e6ecAaFeB82138148a6c76