<div class="container">
  <span class="box box-small">Small</span>
  <span class="box box-large">Large</span>
</div>
.box {
  padding: 1em;
  border-radius: 1em;
  background-color: lightgray;
}
.box-small {
  font-size: 12px;     
}
.box-large {
  font-size: 18px;     
}

.container {
  margin-top: 2em
}

External CSS

This Pen doesn't use any external CSS resources.

External JavaScript

This Pen doesn't use any external JavaScript resources.