
November 12th, 2012, 12:48 PM
|
|
Registered User
|
|
Join Date: Nov 2012
Posts: 2
Time spent in forums: 27 m 34 sec
Reputation Power: 0
|
|
|
Horizontal spacing
Hi,
I have a tight set of paragraphs like this:
<p>PASSED: 18,230</p>
<p>LEFT: 7,300</p>
<p>CHRISTMASES: 20</p>
I need to left-align the "labels" and right-align the numbers. The horizontal layout is tight:
Code:
PASSED: 18,200
LEFT: 7,300
CHRISTMASES: 20
which means that the long label will encroach on the numbers above. I don't know if a table will allow this. Any suggestions on how to do this with CSS would be appreciated.
Note that I can structure the HTML any way I want, so I don't need to use <p> elements like in my example. Thanks in advance.
Rick
|