Is it possible to detect text-width with pure css?

130 Views Asked by At

I would like to know how much percent width a sentence (in relation to window width) have.

Example:

Given:

  1. Sentence with 20 letters including white space
  2. Font Arial, font-size 20px

Wanted:

Width of the text (without wrap) in percentage in any resolution

0

There are 0 best solutions below