Click to See Complete Forum and Search --> : What is the Left-Justify Tag?


T.C.
09-30-2009, 03:00 PM
Is there an HTML tag to left-justify?

I'm not a web developer, but I'm using a website that lets me create online flashcards. When I type the contents of each flashcard, I can use HTML tags, like <b> for bold and <ol> for a list. By default, the text on the flashcard is centered, and that is inappropriate sometimes. If I want left-justified text, what tag can I use?

I've looked at HTML reference pages, and they imply that text alignment is done with CSS. Can anyone explain what that means in this case?

-TC

ryanbutler
09-30-2009, 04:46 PM
Left is by default. If its centered, something else is causing that. Show us a page.

T.C.
09-30-2009, 05:28 PM
Ryan,

Thanks for the reply. I'd like to point you to a page, but it is password protected. You can create an account at FlashCardDB.com if you really want to see, but I would hate for you to go through that much trouble.

When I look at the source, I see something like this, embedded in a whole mess of HTML:

<td id="card-front-1505493" class="cardlist_card_data" >
<span class="ib"><p>Test Question</p></span>
</td>
<td class="cardlist_card_middle"></td>
<td id="card-back-1505493" class="cardlist_card_data">
<span class="ib"><p>Test Answer</p></span>
</td>

I entered "Test Question" and "Test Answer" on a form, and the page is presenting it back to me on a flash card. If I enter HTML tags in the form, it accepts them, and they seem to work fine. For instance, if I had typed "<b>Test Answer</b>, the answer would have appeared in bold. My question is: Is there an HTML tag I can use like <b> that will make the text left-justify? Naive as I am, I thought it would be something simple like <left>, but I tried that and it didn't work.

-TC

nathandelane
09-30-2009, 06:30 PM
You could do <span style="text-align: left;">...</span>

This will left-justify the text between the <span> tag components.

T.C.
09-30-2009, 06:47 PM
Nathan,

That works great! Thanks for the help.

-TC

nathandelane
09-30-2009, 07:00 PM
No problem.