0

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

  • 1
    No text width is not a css property or value. Font size is a text height value – Paulie_D Jun 28 '20 at 08:19
  • 1
    you should consider the fact that each character has its own width so what you want is impossible unsless you know the exact text or you consider a monospace font where the width is 20ch – Temani Afif Jun 28 '20 at 08:37
  • Thank you @TemaniAfif, I just wanted to be sure. –  Jun 28 '20 at 09:24

0 Answers0