+ 3
what is use of "text indent"in css
what is use of "text indent"in css
2 Answers
+ 4
Hello, Ahad Sohail !
"text-indent" - sets the amount of indentation of the first line of the text block (for example, for the paragraph <p>). Impact on all other lines is not. A negative value is allowed to create the first line of the ledge, but make sure that the text does not go outside the browser window.
Syntax
text-indent: value | percent | inherit
Values
As values, any units of length accepted in CSS are accepted - for example, pixels (px), inches (in), points (pt), etc. When specifying a percentage, the indent of the first line is calculated depending on the width of the block. It is permissible to use negative values, but errors may appear in different browsers.
You need to learn more about CSS lessons, and then you will understand everything yourself. Good luck! Sololearn is always with you.
https://www.sololearn.com/learn/CSS/1093/?ref=app
https://www.sololearn.com/Course/CSS/?ref=app