Created
January 30, 2019 10:04
-
-
Save ekman12/276439ed1ec91c142780ce739926f608 to your computer and use it in GitHub Desktop.
dribbleshare
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
.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; | |
} |
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
<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> |
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
@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