Deprecated: Required parameter $options follows optional parameter $args in /home5/zegron/onetakemedia.net/wp-content/plugins/testimonials-widget/includes/libraries/testimonials-widget/includes/libraries/aihrus-framework/includes/class-aihrus-widget.php on line 144
Indenting text in html - Bigcommerce Services

Indenting text in html

How do you indent text / paragraphs in html? I have compiled a short list of several way to do this.

Cascading Style Sheets

Using CSS, you can set all your paragraphs in a document to be indented however much you want.


Or you can add style=”text-indent : 10px;” to the P tag for that paragraph if you only want it in one spot.

paragraph to be indented


Or put the line you want indented in inside a div tag

Text to be indented

Don’t forget to close your p or div tags. 😉

This is the best way to indent paragraphs, as it separates style from content and is widely supported on modern browsers.

Non-Breaking Space

The non-breaking space special character can be used to move text and images over slightly on a Web page.

     Paragraph starts here....


Some browsers don’t like multiple non-breaking spaces in a row. They might crash, or probably just ignore them.

And make sure to save a baseline! 🙂


Leave a Comment