Just a heads up: On March 24, 2025, starting at 4:30pm CDT / 21:30 UTC, the site will be undergoing scheduled maintenance for a few hours. During this time, the site might be unavailable for a short while. Thanks for your patience.
×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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.