I am trying to center align text inside a user macro. The other formatting works fine but center being ignored.
My latest attempte uses this:
<span style="color: #132840; font-size: 9px; text-align: center;">
some text
</span>
Thanks all.
The span element defaults to the length of its content, not the container into which it is placed. If you want the length to match that of the container, then you have to use the div element. So if you change the content to:
<div style="color: #132840; font-size: 9px; text-align: center;">
some text
</div>
Then it should work.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.