Created
June 22, 2019 16:50
-
-
Save tesfayegari/72dfe298d32ff56fdb792c147d968538 to your computer and use it in GitHub Desktop.
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
<h2 style="text-align:center">User Profile Card</h2> | |
<div class="card"> | |
<img src="/w3images/team2.jpg" alt="John" style="width:100%"> | |
<h1>John Doe</h1> | |
<p class="title">CEO & Founder, Example</p> | |
<p>Harvard University</p> | |
<div style="margin: 24px 0;"> | |
<a href="#"><i class="fa fa-dribbble"></i></a> | |
<a href="#"><i class="fa fa-twitter"></i></a> | |
<a href="#"><i class="fa fa-linkedin"></i></a> | |
<a href="#"><i class="fa fa-facebook"></i></a> | |
</div> | |
<p><button>Contact</button></p> | |
</div> | |
CSS | |
.card { | |
box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2); | |
max-width: 300px; | |
margin: auto; | |
text-align: center; | |
font-family: arial; | |
} | |
.title { | |
color: grey; | |
font-size: 18px; | |
} | |
button { | |
border: none; | |
outline: 0; | |
display: inline-block; | |
padding: 8px; | |
color: white; | |
background-color: #000; | |
text-align: center; | |
cursor: pointer; | |
width: 100%; | |
font-size: 18px; | |
} | |
a { | |
text-decoration: none; | |
font-size: 22px; | |
color: black; | |
} | |
button:hover, a:hover { | |
opacity: 0.7; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment