Skip to content

Instantly share code, notes, and snippets.

@ekman12
Created January 30, 2019 10:04
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 ekman12/276439ed1ec91c142780ce739926f608 to your computer and use it in GitHub Desktop.
Save ekman12/276439ed1ec91c142780ce739926f608 to your computer and use it in GitHub Desktop.
dribbleshare
.card {
width: 220px;
height: 218px;
background-color: white;
border-radius: 3px;
border: 1px solid rgb(240,240,240);
display: flex;
flex-direction: column;
}
.card-body {
height: 191px;
}
.card-picture {
height: 160px;
width: 180px;
padding: 20px;
}
.card-picture:hover {
opacity: 1;
}
.card-likes {
display: flex;
justify-content: flex-end;
margin-right: 10px;
align-items: center;
position: relative;
bottom: 10px;
}
.icon {
margin: 0 15px;
}
a {
color: grey;
text-decoration: none;
}
.card-footer {
position: relative;
top: 15px;
left: 8px;
}
.card-footer p{
font-size: 13px;
line-height: 18px;
color: #1e6189;
}
<html>
<head>
<meta charset="UTF-8">
<link rel="stylesheet" href="css/style.css">
<link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.0.10/css/all.css">
<title>Dribble</title>
</head>
<body>
<div class="card">
<div class="card-body">
<img src="download.jpeg" class="card-picture" alt="">
<div class="card-likes">
<div><a href=""><i class="icon fa fa-eye"></i> 5561</a></div>
<div><a href=""><i class="icon fas fa-comment"></i>145</a></div>
<div><a href=""><i class="icon fas fa-heart"></i>465</a></div>
</div>
</div>
<div class="card-footer">
<p>Tomek Stacharski</p>
</div>
</div>
</body>
</html>
@import url("card.css");
body{
background-color: rgb(240,240,240);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment