<div class="badge">
<div class="title-block">
Things
</div>
12345
</div>
.badge {
display: inline-block;
color: cornflowerblue;
}
.title-block {
display: inline-block;
background-color: currentcolor;
color: white;
}
body {
padding: 1rem;
font-family: Futura, "Segoe UI", sans-serif;
font-size: 1.5rem;
}
This Pen doesn't use any external CSS resources.
This Pen doesn't use any external JavaScript resources.