How do I indent the first line of a paragraph using HTML inline styling? [duplicate]
How do I indent the first line of a paragraph using HTML inline styling? [duplicate]
This question already has an answer here:
I'm creating an HTML email and I do not want to use CSS styling in the head (for cross platform compatibility reasons). I need to set an indention for the first line of the paragraph using inline styling only.
How would I do that?
This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.
2 Answers
2
This should work:
<p style="text-indent: 50px">
You can try using
in sequence, and experiment to find the number you need.
<p> This is a paragraph. </p>
looks like this:
This is a paragraph.
http://www.w3schools.com/html/html_entities.asp
This does not resemble "styling". It's an attempt at replicating styling by changing content. CSS was introduced to keep style and content separate. For good reason. It's unclear, how this received any upvotes at all.
– IInspectable
Sep 2 at 20:45
From what I understand some email clients won't recognize this method.
– Orion
Feb 19 '16 at 20:25