<div class="profile">
<div class="avatarWrapper">
<img src="https://joeyreyes.dev/static/d85cacc8111340043302c48b5f2db40e/5f169/joey.webp" alt="Joey in Vale, Colorado." class="avatar">
<div class="onlineStatus active"></div>
</div>
<div class="clearfix"></div>
<h1>Joey</h1>
<p>I'm a Web Developer in Austin, Texas and I've been writing web code for a long, long time.</p>
<p>Joey's interests:</p>
<ul>
<li>Coding</li>
<li>Music</li>
<li>Baking</li>
</ul>
</div>
body {
font-family: "HelveticaNeue-Light", "Helvetica Neue Light", "Helvetica Neue", Helvetica, Arial, "Lucida Grande", sans-serif;
font-weight: 300;
background-color: #38473e;
}
.profile {
background-color: #fff;
border-radius: 8px;
max-width: 200px;
padding: 20px;
margin: 20px auto;
}
.avatarWrapper {
float: right;
position: relative;
width: 200px;
}
.avatar {
max-width: 60px;
height: auto;
width: 100%;
border-radius: 100%;
z-index: 2;
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
}
.onlineStatus {
width: 65px;
height: 65px;
border-radius: 100%;
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
z-index: 1;
}
.active {
background-color: green;
}
.inactive {
background-color: red;
}
.clearFix {
clear: both;
}
This Pen doesn't use any external CSS resources.
This Pen doesn't use any external JavaScript resources.