<!DOCTYPE HTML>
<html>
<body>

<div style="display:-moz-box; height: 5px; border:4px dotted blue;">
  <div style="overflow:hidden">text<br>more text</div>
</div>

</body>
</html>