• I want to align text to the right, but need to use a span (in order to change text size) and I’ve read that you can’t use align in a <span>. So I tried putting the span in a <div> like this:

    <div class=”right”><span style=”font-size: 20pt; font-family: helvetica;”>Set up goals for how many workouts a week you want to do and the app will remind you.</span></div>

    But nothing happened. Is there any way to do this? Or another way to go about aligning a <span>?

    Any help you could give would be so much appreciated!

Viewing 4 replies - 1 through 4 (of 4 total)
  • Hi kristastryker. What css is applied to class .right?

    You could try <p align=”right”>, which isn’t technically valid in HTML5 (but should still work). Otherwise, make sure you have a class of .right{text-align:right} in your stylesheet.

    Thread Starter kristastryker

    (@kristastryker)

    Thanks guys! <p align=”right”> worked like a charm, I didn’t think of that before.

    Hi kristastryker. Glad you got it working. If you don’t need any further assistance here please mark the topic as resolved. Thank you.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Align text to right’ is closed to new replies.