• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

How to insert a tab in HTML?

 
Shiaber Shaam
Ranch Hand
Posts: 252
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

How to insert a tab in HTML?

Thanks,
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 64620
86
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
if you are referring to a tab character, that has no meaning in HTML. What are you really trying to do?
 
Eric Pascarello
author
Rancher
Posts: 15385
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Without more info all I can say is \t

Eric
 
Shiaber Shaam
Ranch Hand
Posts: 252
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Yes, I want to insert a tab character.

I want to leave some spaces between two words inside a <td></td>.

Please Help.
[ July 10, 2008: Message edited by: Shiaber Shaam ]
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 64620
86
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Tabs will not do that. You'll need to use non-breaking spaces, or better yet, CSS.
 
Shiaber Shaam
Ranch Hand
Posts: 252
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I tried nbsp. It didn't work.

Please let me know other possibilities.

Thanks,

[ July 10, 2008: Message edited by: Shiaber Shaam ]
[ July 10, 2008: Message edited by: Shiaber Shaam ]
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 64620
86
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by Shiaber Shaam:
I tried  . It didn't work.
This is the most useless thing you could post. If you want help, tell us what you tried, and how it didn't work. Otherwise, you are wasting your time and ours.
[ July 10, 2008: Message edited by: Bear Bibeault ]
 
Shiaber Shaam
Ranch Hand
Posts: 252
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Sorry, I tried "nbsp", in my post it appeared as spaces.


Thanks,
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 64620
86
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by Shiaber Shaam:
Sorry, I tried "nbsp", in my post it appeared as spaces.
Correct. You can use multiple non-breaking spaces to get the spacing you want. Otherwise, HTML collapses multiple whitespace to a single character.

That's rather hacky though. A CSS solution would be best.
 
Muhammad Saifuddin
Ranch Hand
Posts: 1324
Android Java Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
here you can get the idea.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic