Skip to content

Instantly share code, notes, and snippets.

@nix1947
Created February 11, 2017 02:59
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save nix1947/26faf7a33a565f09ae1c0ff175cf8d74 to your computer and use it in GitHub Desktop.
Save nix1947/26faf7a33a565f09ae1c0ff175cf8d74 to your computer and use it in GitHub Desktop.
bootstra3 simple cards
<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