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 SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

ADDING TAB SPACES

Status
Not open for further replies.

madaxe

Technical User
Dec 21, 2004
44
0
0
US
Im having problems adding tabs or multiple tab spaces into my code can anybody help for instance the code below i want tabs instead of "-----".....

Im foxed


MadAxe

Code:
print "<OPTION VALUE=\"$preselect\">Week\($week)-----Used Picks-----$postpick</OPTION>\n";
 
Hi this does not seem to work any ideas

Madaxe
 
tabs aren't seen in html when it's rendered, view the source from unix junky's code and the tabs will be there
you could consider using a table for formatting, though a table won't be much use to you here, because you're in a drop down

try using non breaking spaces &nbsp;
Code:
print "<OPTION VALUE=\"$preselect\">Week\($week)[COLOR=red][b]&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;[/b][/color]Used Picks-----$postpick</OPTION>\n";

that's 16 non breaking spaces, assuming 8 to a tab, and there's two tabs, you'll proabably need to significantly reduce this

--Paul

cigless ...
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top