<style>
div { position:relative; white-space:pre; border:1px solid blue; font-family:ahem; }
</style>
<div style="width:4ex">xxx
x
x</div>
<div style="width:5ex">xxxx
x</div>
<div style="width:6ex">xxxx
x</div>
