Indenting Text - HTML

You can use the text-indent property to indent the first line of an element. For example, to indent the first line of a paragraph of text by 25 pixels, you could use code similar to the following:

<p style=“text-indent: 25px;”> Lorem ipsum dolor sit amet,
Consectetuer adipiscing elit, sed diam nonummy nibh euismod
tincidunt ut laoreet dolore magna aliquam erat volutpat. Ut
wisi enim ad minim veniam, quis nostrud exerci tation
ullamcorper suscipit obortis nisl ut aliquip ex ea commodo
consequat.</p>

Note that the text-indent property only indents the first line of the element. If you want to indent the entire element, use the margin properties instead.


All rights reserved © 2018 Wisdom IT Services India Pvt. Ltd DMCA.com Protection Status

HTML Topics