<div class="parent">
<div class="child">
1
</div>
<div class="child">
Lorem Ipsum is simply dummy print text.
</div>
</div>
.parent {
display: flex;
}
.child:last-child {
flex-shrink: 0;
}
/* --------- Non-flexbox related styles --------- */
.parent > div {
margin: 2%;
padding: 10px 40px;
font-size: 60px;
line-height: 100px;
color: #ffe8c3;
text-align: center;
background-color: #eab768;
border-radius: 10px;
border: 10px solid #f5cc8b;
}
.parent > div:last-child {
padding: 10px;
font-size: 16px;
line-height: 24px;
color: #ffe8c3;
}
body {
padding: 20px;
background-color: #282c35;
font-family: Verdana;
font-weight: 600;
}
This Pen doesn't use any external CSS resources.
This Pen doesn't use any external JavaScript resources.