For some reason that escapes me, the value of "text-indent" is a number of pixels. But different fonts want different levels of indentation. I would like to avoid having to remember to set the right indentation every time I change a font, which I could do if
text-indent: "mmm";
mean "add pixels equivalent to this text in the current font." Then the text-indent would just be the same in every font. Is there anything in CSS that would achieve that effect?
You could use
em
instead ofpx
.Reference: w3.org