Getting spaces between vertical text to align

Status
This thread has been Locked and is not open to further replies. Please start a New Thread if you're having a similar issue. View our Welcome Guide to learn how to use this site.

JulieAsking

Thread Starter
Joined
Nov 20, 2002
Messages
129
A web page using HTML creates uneven spaces after the words 'Tel' and 'Fax' if they appear as follows:

Tel: xxxxxxx
Fax: xxxxxxx

Even though the text consists of 3 letters each, plus a colon, the word 'Fax' is wider and thus pushes the numbers to the right further causing the numbers for tel and fax not to line up vertically. I'm using '&nbsp' between the words and numbers.

What would be a good way to make the numbers align vertically? Will this require CSS?
 

colinsp

Colin
Joined
Sep 5, 2007
Messages
2,314
The reason is that you are using a proportional width font. x takes up more room than l. The easiest way would be to change your font for a fixed width one. If you want to keep your existing font then you could do it with css as that is the proper way to do it.
 
Status
This thread has been Locked and is not open to further replies. Please start a New Thread if you're having a similar issue. View our Welcome Guide to learn how to use this site.

Users Who Are Viewing This Thread (Users: 0, Guests: 1)

As Seen On
As Seen On...

Welcome to Tech Support Guy!

Are you looking for the solution to your computer problem? Join our site today to ask your question. This site is completely free -- paid for by advertisers and donations.

If you're not already familiar with forums, watch our Welcome Guide to get started.

Join over 807,865 other people just like you!

Latest posts

Members online

Top