Here's another issue I encountered while working on revising my Textarea Line Count plugin (shameless promotion).
CSS's text-indent
property allows for creating white space before the first line of text. It can be specified in various units like px
, em
, pt
as well as a percentage %
.
Let's assume you set text-indent: 30%
for your text area. The question arises, which width is used to calculate this percentage? Is it the outer width or the inner width? Put simply, does the calculation include any of the following:
- Border
- Margin
- Padding