I'm editing a piece of html email template.
I've been trying to apply text-indent
property to a text using an styling as following:
<style>
#Indent {text-indent:1em}
</style>
<p id="Indent">Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
</p>
But it doesn't run properly in browser. At the same time inline styling for this property runs perfectly well in broswer:
<p style="text-indent:1em">Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
</p>
All other stylings in the document I did using id attribute and they work perfectly fine.
Is there a way to style text-indent
in the similar manner so I won't have to make a single inline styling in a single document?