<!DOCTYPE html>
<meta charset="utf-8">
<style>
.clamp {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  width: 150px;
  font: 16px / 32px monospace;
  background-color: yellow;
  padding: 4px;
  overflow: hidden;
}
</style>
<div class="clamp">
  supercalifragilisticexpialidocious
  supercalifragilisticexpialidocious
</div>
