Please register or login. There are 0 registered and 1217 anonymous users currently online. Current bandwidth usage: 326.30 kbit/s March 21 - 01:44pm EDT 
Hardware Analysis
      
Forums Product Prices
  Contents 
 
 

  Latest Topics 
 

More >>
 

    
 
 

  You Are Here: 
 
/ Forums / Programming /
 

  HTML - Tab character? 
 
 Author 
 Date Written 
 Tools 
Mike L Mar 08, 2004, 08:04pm EST Reply - Quote - Report Abuse
Private Message - Add to Buddy List Replies: 5 - Views: 49624
This might seem like a really stupid question, but...

I'm trying to indent a paragraph. I can do &nbsp four times, but that seems sloppy. It would seem like there would be something similar to &nbsp but for tab, but I haven't found any. I've tried doing &#09 but still no luck. Any thoughts? :-)



Who cares if the glass is half empty OR half full, if you're thirsty it'll all be gone anyways...
Want to enjoy fewer advertisements and more features? Click here to become a Hardware Analysis registered user.
Scott Hep. May 22, 2004, 04:32am EDT Reply - Quote - Report Abuse
Private Message - Add to Buddy List  
>> Re: HTML - Tab character?
Check out webmonkey.com for HTML characters, or something like that, I know they have a sheet of a bunch of html characters like tab and such.

Richard May 22, 2004, 06:35am EDT Reply - Quote - Report Abuse
Private Message - Add to Buddy List  
>> Re: HTML - Tab character?
You can use the <UL> and </UL> tags. Combining two together will produce a tab. For Example:

<UL>
<UL>
This Text Will be have a gap on the left hand side!!.
</UL>
This next will not.
</UL>

I'm sure there are other ways, but this might help.

Col May 22, 2004, 06:55am EDT Reply - Quote - Report Abuse
Private Message - Add to Buddy List

Edited: May 22, 2004, 06:56am EDT

 
>> Re: HTML - Tab character?
You can use the <ul> tag, which will work, however that is technically a misuse of the function, the best way I have found is with a table (just hide the borders!)
"
<table>
<tr>
<td width="150"></td>
<td width="200"> Content goes here!!!!!!
</td>
</tr>
</table>
"
You then just change the first number until the gap is what you want!

____________________________________
System Config

Asus A8V Deluxe
AMD X2 4600
1 GB Crucial Ballistix
X800 PRO
2 x 200 GB SATA WD HD
Pioneer DVR 108 DVD RW
Audigy 2 ZS
Lian Li PC60
430 Watt Antec PSU
Samsung 172x TFT
Richard May 22, 2004, 07:35am EDT Reply - Quote - Report Abuse
Private Message - Add to Buddy List  
>> Re: HTML - Tab character?
Sorry, I was reading the question as he wanted to just indent the first line of a papagraph. Not the whole paprgraph. In which case a table would definetly be the beter option.

Lawrence Holcomb Jun 06, 2004, 03:57pm EDT Reply - Quote - Report Abuse
Private Message - Add to Buddy List  
>> Re: HTML - Tab character?
The easiest way is to use CSS.

<style type="text/css">
p {text-indent: 1cm}
</style>

This will of course make all p tags indent but you can always make something like p.indent if you don't want to change your normal p tags.


Write a Reply >>


 

    
 
 

  Topic Tools 
 
RSS UpdatesRSS Updates
 

  Related Articles 
 
 

  Newsletter 
 
A weekly newsletter featuring an editorial and a roundup of the latest articles, news and other interesting topics.

Please enter your email address below and click Subscribe.