Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

<TAB> ?

Status
Not open for further replies.

patweb

Programmer
Apr 17, 2003
174
BE
Hi, does the tab tag exist or with tag to use to set a few spaces after a word and to start the data at a single line. (to align the data at the left). For this application I try to avoid (invisible) columns.

e.g.

Marc<TAB><TAB>2008<TAB><TAB>1981 'not working
Ann<TAB><TAB>2010<TAB><TAB>1975 'not working

bye, pat.


 
Nope, no <tab> tag in HTML. For your problem, I would suggest using a table. Even though you tried to avoid it, this sounds like a perfect example of tabular data.
 
txks, I am pro table building and use it frequently, but for this little script I should avoid it, its disburb the mark-up. I should search another solution or try it ons with tables.
 
You could put nbsp's between the info - however it wouldnt like up perfectly unless all the info were the same length...

Let them hate - so long as they fear... Lucius Accius
 
How about using some CSS?

Code:
<html>
<head>
<style>
.tab
{
 padding:10;
}

.tab2
{
 padding:20;
}
</style>
</head>
<body>
Marc[b]<span class='tab'></span>[/b]2008<span class='tab'></span>1981<br />
Ann<span class='tab'></span>2010<span class='tab'></span>1975<br />
Dave[b]<span class='tab2' />[/b]2012<span class='tab2' />1977
</body>
</html>

Notice the difference between the two ways I use the SPAN tags. They both look the same when viewed with IE6, however, so maybe instead of <TAB>, you can have <span class='TAB' /> do the same thing for you.

--Dave
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top