Felix C
Felix C

Reputation: 1775

Same space between words in multiple lines

I guess this problem is very simple to solve, but I don't know what to search for..

I want to have always the same space between words in multiple lines. Like invisible tables, but I want to avoid tables.

Example:

01.01.1999       Text
02.01.1999       Text gdfgf
03.01.99         Text gfghdh

How would you do this?

PS: I need a solution which applies on each row, because the data is delivered row per row through serverside scripts.

Upvotes: 0

Views: 71

Answers (2)

Andrew
Andrew

Reputation: 1880

Technically you could place a span (with the same class) around the text that you want to pad out and give the span the same width so that it pushes the other text out. for example:

span{
width:100px;
display: block;
float:left;
}

Upvotes: 0

Carol Skelly
Carol Skelly

Reputation: 362340

You could use the <pre> tag, unless you're looking for special formatting within each row. Description lists <dl> maybe another option in that case.

<pre>
01.01.1999       Text
02.01.1999       Text gdfgf
03.01.99         Text gfghdh
</pre>

Upvotes: 1

Related Questions