Jump to content
Search In
  • More options...
Find results that contain...
Find results in...
Advanced Search
  • 0
kjrmedia

Aligning Text Center in a markdown box

Question

Hi everyone,

I am using this coding for text in a markdown box. All of it works with the exception of, "text-align: center". Can someone please let me know how to properly get the alignment code to work? Thanks.

Unfortunately I am unable to add a link to the page this on because it is not enabled yet.


<span style="color:red; font-family:Georgia; text-align:center; font-size:2em;">The goal of the Women’s Enterprise Action Loan Fund, (WEALF): helping women business owners become financially self-sufficient.




Edited by sportslady180

Share this post


Link to post

5 answers to this question

Recommended Posts

  • 4

It is because text-align:center needs a block element like a div. Try the following:


<div style="text-align:center"><span style="color:red; font-family:Georgia; font-size:2em;">The goal of the Women’s Enterprise Action Loan Fund, (WEALF): helping women business owners become financially self-sufficient.</span></div>

This is working for me, and you can see it for a while at gennick.com/test.

Share this post


Link to post
  • 2

I just added the word center in between less than sign and the greater than sign that are in between the M and the question mark on our keyboards, like in html.

I can't type the actual less than and greater than signs because they go invisible...just put the word center in between those two bad boys above ur markup text and it seems to do the trick, centers it, like html =)

Edited by Johny5

Share this post


Link to post
  • 0

@sportslady180

It looks like you may have left out a closing span tag.

You're code should look like this:


<span style="color:red; font-family:Georgia; text-align:center; font-size:2em;">The goal of the Women’s Enterprise Action Loan Fund, (WEALF): helping women business owners become financially self-sufficient.</span>

Note the closing

</span>

tag

Share this post


Link to post
  • 0

Hi @mozrelic,

I tried it and all the formatting commands worked with the exception on centering the text. That is the one thing I cannot get to work; I don't know why. Please help if you can. Thanks

Edited by sportslady180
Initial Revision

Share this post


Link to post

Create an account or sign in to comment

You need to be a member in order to leave a comment


×
×
  • Create New...