Created
February 11, 2017 02:59
-
-
Save nix1947/26faf7a33a565f09ae1c0ff175cf8d74 to your computer and use it in GitHub Desktop.
bootstra3 simple cards
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> | |
/* card css */ | |
.card{ | |
background-color: red; | |
margin: 0; | |
box-shadow: 0 4px 8px 0 rgba(0,0,0,0.2); | |
transition: 0.3s; | |
border-radius: 5px; /* 5px rounded corners */ | |
} | |
.card:hover { | |
box-shadow: 0 8px 16px 0 rgba(0,0,0,0.2); | |
} | |
.card img{ | |
width: 100%; | |
border-radius: 5px 5px 0 0; | |
} | |
.card-content{ | |
padding: 2px 16px; | |
} | |
/* end card css */ | |
</stye> | |
<div class="col-md-12"> | |
<div class="card"> | |
<img src="http://placehold.it/300X100" alt=""> | |
<div class="card-content"> | |
<h3> hello world</h3> | |
</div> | |
</div> | |
</div> | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment