Forum Moderators: coopster

Message Too Old, No Replies

Tabs in HTML

         

Habtom

7:12 am on Apr 13, 2006 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



I need the following text to appear in HTML:

City: Amsterdam
Country: Netherlands

as . . .

City: Amsterdam
Country: Netherlands

Habtom

Habtom

7:13 am on Apr 13, 2006 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



It doesn't do it here too.

But what I wanted to do was to align Amsterdam with Netherlands with spaces and not using table.

Habtom

vincevincevince

7:16 am on Apr 13, 2006 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



You can do it using a table, or using floated block-level elements, or using the XMP or PLAINTEXT environments.

e.g.


<table>
<tr><td style="width:40px">Item</td><td style="width:40px">Value</td></tr>
<tr><td style="width:40px">Item</td><td style="width:40px">Value</td></tr>
</table>

e.g. (2)


<div style="float:left;width:40px">Item</div><div style="float:left;width:40px">Value</div>
<div style="float:left;clear:right;width:40px">Item</div><div style="float:left;width:40px">Value</div>

e.g. (3) (Use the tab key instead of **TAB**)


<xmp>
Item **TAB** Value
Item **TAB** Value
</xmp>

Habtom

7:26 am on Apr 13, 2006 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Thanks Vince

The <xmp> gave me more idea and later found out that <pre> could do what I wanted too. Thanks, it was a great help.

Habtom

henry0

11:17 am on Apr 13, 2006 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



I did not remember a lot about XMP
So I checked it out:
Seems to be deprecated
And it is recommended using: <pre> or <code>