Google Answers Logo
View Question
 
Q: (s)HTM(l) code to right-justify text not in a table ( Answered 5 out of 5 stars,   2 Comments )
Question  
Subject: (s)HTM(l) code to right-justify text not in a table
Category: Computers > Programming
Asked by: bunisan-ga
List Price: $4.00
Posted: 27 Sep 2005 00:02 PDT
Expires: 27 Oct 2005 00:02 PDT
Question ID: 573144
What is the (s)HTM(l) code to right-justify text not in a table.  It
get's tré tedious calculating the number of  s to get the
positioning correct.
Answer  
Subject: Re: (s)HTM(l) code to right-justify text not in a table
Answered By: answerfinder-ga on 27 Sep 2005 01:12 PDT
Rated:5 out of 5 stars
 
Dear Bunisan-ga,
You can right-justify with the following ccs:

<div align="right">text</div>

Source
http://www.echoecho.com/htmltext06.htm
http://www.htmldog.com/

I hope this answers your question. If it does not, or the answer is
unclear, then please ask for clarification of this research before
rating the answer. I shall respond to the clarification request as
soon as I receive it.
Thank you
answerfinder

Search strategy
Personal knowledge

Clarification of Answer by answerfinder-ga on 27 Sep 2005 01:13 PDT
Sorry a typo, it should read css.
answerfinder-ga
bunisan-ga rated this answer:5 out of 5 stars and gave an additional tip of: $3.00
Great!  This will save me beaucoup time!  The first two worked as
advertised, but the last piece of code, <span
style="text-align:right;">Text</span>, just seems to center the
graphic or text.

Thanks a bunch!

BUNI-San

Comments  
Subject: Re: (s)HTM(l) code to right-justify text not in a table
From: awilinsk-ga on 27 Sep 2005 08:22 PDT
 
The best way to do this is use a div and float it right:

<div style="float:right">Stuff</div>

or you could use a span with the text-align:

<span style="text-align:right;">Text</span>
Subject: Re: (s)HTM(l) code to right-justify text not in a table
From: answerfinder-ga on 27 Sep 2005 23:38 PDT
 
Dear BUNI-San,
Thank you for the tip. Pleased I could help.
answerfinder-ga

Important Disclaimer: Answers and comments provided on Google Answers are general information, and are not intended to substitute for informed professional medical, psychiatric, psychological, tax, legal, investment, accounting, or other professional advice. Google does not endorse, and expressly disclaims liability for any product, manufacturer, distributor, service or service provider mentioned or any opinion expressed in answers or comments. Please read carefully the Google Answers Terms of Service.

If you feel that you have found inappropriate content, please let us know by emailing us at answers-support@google.com with the question ID listed above. Thank you.
Search Google Answers for
Google Answers  


Google Home - Answers FAQ - Terms of Service - Privacy Policy