Another problem related to the rewrite of my Textarea Line Count plugin (<– shameless plug)
The text-indent property of CSS provides white space preceding the first line of text. Possible values include measurements in px, em, pt, etc. but also as a percentage %.
So, let’s say you specify that your text-area should have: text-indent: 30%. But, 30% of which width is used to perform this calculation? Is it the outer width or the inner width? In other words, are any of the following included in the width:
- Border
- Margin
- Padding
I’ve figured it out. Border is not included in the calculation, since this technically isn’t included in the element’s width. Only inner width is measured; no border, padding, margin, etc.