Nothing is for sale here. Freewill tips keep the site running. Want to help? → Tip via Paypal
Text Indent
Using the text-indent property indents the first line of paragraphs like you see in many magazines and books. It's this simple:With that in your style sheet, each time you start a new paragraph the first line will be indented by 20 pixels.
This paragraph is indented 20 pixels using the text-indent property. You can use the text-indent property with any element that accepts text, but I suggest either using only for paragraphs or creating a generic class you can add to elements as needed.
Using it in other ways may cause indentation of some items you don’t want indented. Using it for paragraphs of text or as a generic class rule you can use inline as needed eliminates unintended indentations.
Everyone knows unintended indentations aren’t welcome. I had an unintended indentation ring my doorbell the other day and I told it to go away. Oh sure, I felt bad about it, but not doing so would be utter madness!