SyntaxFix
Write A Post
Hire A Developer
Questions
Please use the following style. margin:auto normally used to center align the content. display:table is needed for span element
margin:auto
display:table
span
<span style="margin:auto; display:table; border:1px solid red;"> This is some text in a div element! </span>