How to add tab space instead of multiple non-breaking spaces with CSS?

Spread the love

Sometimes, we want to add tab space instead of multiple non-breaking spaces with CSS.

In this article, we’ll look at how to add tab space instead of multiple non-breaking spaces with CSS.

How to add tab space instead of multiple non-breaking spaces with CSS?

To add tab space instead of multiple non-breaking spaces with CSS, we can add padding or margin.

For instance, we write

padding-left: 5em;

to set the left padding to 5em.

Or we write

margin-left: 5em;

to set the left margin to 5em.

Conclusion

To add tab space instead of multiple non-breaking spaces with CSS, we can add padding or margin.

Leave a Reply

Your email address will not be published.