in CSS by (12.7k points) recategorized by
0 like 0 dislike

How I can to set tabulation length in CSS?

set tabulation length css

1 Answer

0 like 0 dislike
by (12.7k points)

Use CSS property tab-size so like this:

For set tab size to 4 characters wide:

pre {tab-size: 4;}

For remove indentation:

pre {tab-size: 0;}

Or length values:

pre {tab-size: 10px;}
pre {tab-size: 2em;}

Your answer

Try to answer the question as detailed as possible.
Your name to display (optional):
Privacy: Your email address will only be used for sending these notifications.
Anti-spam verification:
To avoid this verification in future, please log in or register.