Technical Discussion
  >> Web Design / HTML / Web hosting Forum


Register (or login) on our website and you will not see this ad.


  Print Thread
Standard User cheshire_man
(fountain of knowledge) Wed 26-Oct-11 17:27:26
Print Post

CSS Tab stops


[link to this post]
 
Is there any way of getting something like tab stops in CSS?

I could use tables though that can get tedious, and doesn't cope with, for example, the equivalent of a decimal tab.

Clearly would need to be relative, %age, or the like, to allow for scaling.

Just musing.

Tony
Standard User planetbrain
(member) Wed 26-Oct-11 17:41:45
Print Post

Re: CSS Tab stops


[re: cheshire_man] [link to this post]
 
My CSS isn't strong enough to give specific details but I would suggest margins or are where you probably need to be looking.

you may be right, but I'm not wrong

O2 Standard
Standard User camieabz
(sensei) Wed 26-Oct-11 17:45:48
Print Post

Re: CSS Tab stops


[re: cheshire_man] [link to this post]
 
Try notepad++

I think it might have the functionality.

~~~~~~~~~~


© Camieabz 2002-2011

All Connection Data ~ plusnet

Scottish Labour politician: �The SNP are on a very dangerous tack. What they are doing is trying to build up a situation in Scotland where the services are manifestly better than south of the border in a number of areas.�

Interviewer: �Is that a bad thing?�

Scottish Labour politician: �No, but they are doing it deliberately.�


Register (or login) on our website and you will not see this ad.

Standard User deleted
(deleted) Wed 26-Oct-11 17:59:23
Print Post

Re: CSS Tab stops


[re: cheshire_man] [link to this post]
 
Check out the answer here. It uses the dt tag to deal with tab stops...
Standard User deleted
(deleted) Wed 26-Oct-11 19:55:29
Print Post

Re: CSS Tab stops


[re: camieabz] [link to this post]
 
lol
Standard User deleted
(deleted) Thu 27-Oct-11 22:46:44
Print Post

Re: CSS Tab stops


[re: camieabz] [link to this post]
 
In reply to a post by camieabz:
Try notepad++

I think it might have the functionality.
LOL
Standard User deleted
(deleted) Sun 30-Oct-11 09:33:22
Print Post

Re: CSS Tab stops


[re: deleted] [link to this post]
 
Check out the answer here. It uses the dt tag to deal with tab stops...


One of the answer's there uses the 'dt' and 'dd' tags in this solution but there is a lot of discussion around the correct way to present what is being done. Being fairly liberal, I can't find fault with most of the potential solutions offered but I think a lot depends on how much information you have that is going to be presented this way.

In the example given in the above post, the 'dt' option works well, but so does the 'span' option and I would suggest either is fine for one piece of data. If, however, you are presenting multiple lines of information (data?), then correctly formatted tables are the right way to go - semantically it would be correct and it would also be fully accessible.

I hope that helps a bit,

Ian

Edited by deleted (Sun 30-Oct-11 09:34:43)

  Print Thread

Jump to