<!DOCTYPE html>
<html>
<head>
<style>
.r { direction: rtl; }
.l { direction: ltr; }
span { border: 2px solid; padding: 0 10px 0 5px; margin: 0 60px 0 30px; }
</style>
</head>
<body>
<div><span>One<div></div>Two</span></div>
</body>
</html>