<div style="text-align: center;"> <span style="border:1px solid red;"> This is some text in a div element! </span> </div>