How to Right Align Text Using HTML

104 6

Instructions

1

Type the following code directly before the section of text that you want right-aligned:

<p style="text-align:right;">Text Goes Here</p>
2

Type <img src="picture.jpg" style="float:right;"> to right-align a picture. To cause text to stop wrapping around an image, insert <br style="clear:all;" /> between the text and the picture.
3

Preview your website. Be sure that you have made no typing errors and that all of your code is properly closed.
Source...
Subscribe to our newsletter
Sign up here to get the latest news, updates and special offers delivered directly to your inbox.
You can unsubscribe at any time

Leave A Reply

Your email address will not be published.