PDA

View Full Version : Align two text lines ?



umanga
Dec 17th, 2008, 03:38 AM
Greetings all,

I have to align two text lines ,so that a character in the first line displayed right above the character in second line.ie examples say I have following text lines.

line1>CABCQ
line2>C...X

Here both lines have the same number of characters.I want to place the dots in second line aligning with ABC , so that X will place right below Q.

I want to do this without nay tables? Is is possible to do using CSS,may be using a fixed width for characters ?

thanks in advance,
umanga

tnowalk
Dec 17th, 2008, 04:15 AM
You could also wrap the text in <pre></pre> tags and it will parse exactly how you type it in, for example:

<pre>
CABCQ
C X
</pre>

will output:

CABCQ
C X

Best Regards,
Trevor

jerry62704
Dec 17th, 2008, 05:43 PM
You could also use a fixed width font as well.