<div class="card">
<div class="content">
<div class="top">
<p>Orange</p>
<div class="color"></div>
</div>
<div class="middle">
<div>
<p>#F9BC61</p>
<p>Charizard</p>
</div>
<img src="https://www.smashbros.com/wiiu-3ds/images/character/lizardon/main.png" />
</div>
<div class="bottom">
<div>
<p>Hue</p>
<p>36</p>
</div>
<div>
<p>Sat</p>
<p>93</p>
</div>
<div>
<p>Lum</p>
<p>68</p>
</div>
</div>
</div>
</div>
@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@400;700&display=swap');
body {
display: flex;
justify-content: center;
align-items: center;
min-height: 100vh;
background-color: #F9BC61;
overflow: hidden;
font-family: "Roboto";
}
.card {
display: flex;
justify-content: center;
align-items: center;
height: 300px;
width: 250px;
background: linear-gradient(#F9BC61, #FDE8C9);
box-shadow: 0px 6px 6px -3px rgba(0,0,0,0.2),0px 10px 14px 1px rgba(0,0,0,0.14),0px 4px 18px 3px rgba(0,0,0,0.12);
border-radius: 8px;
}
.content {
display: flex;
flex-direction: column;
height: 88%;
width: 88%;
background-color: white;
border-radius: 8px;
}
.content > .top {
display: flex;
justify-content: flex-end;
align-items: center;
height: 20%;
background-color: white;
p {
font-weight: bold;
font-size: 12px;
}
.color {
height: 20px;
width: 20px;
margin-left: 5px;
margin-right: 10px;
border-radius: 50%;
background-color: orange;
}
}
.content > .middle {
display: flex;
justify-content: space-between;
align-items: center;
height: 40%;
background: linear-gradient(#F9BC61, #FDE8C9 75%);
padding-left: 15px;
padding-right: 15px;
img {
width: 60%;
}
div > p:first-child {
margin-bottom: 5px;
font-size: 12px;
}
div > p:last-child {
margin: 0;
font-weight: bold;
}
}
.content > .bottom {
display: flex;
justify-content: space-between;
align-items: center;
height: 40%;
padding-left: 30px;
padding-right: 30px;
div {
display: flex;
flex-direction: column;
align-items: center;
p:first-child {
font-weight: bold;
}
}
}
View Compiled
This Pen doesn't use any external CSS resources.
This Pen doesn't use any external JavaScript resources.