/>
<style type="text/css">
body &gt; div { width: 10em; }
body &gt; div &gt; div { display: inline-block; background: green; color: white; }
</style>
</head>
<body>
<div>x <div>This is some text that is wider than 10em but has no words wider than 10em.</div> z</div>


</body></html>