Reputation:
I would like to know how much percent width a sentence (in relation to window width) have.
Example:
Given:
Wanted:
Width of the text (without wrap) in percentage in any resolution
Upvotes: 1
Views: 141
Reputation: 29922
It is now possible to find out the width of text using container query length units, see Roman Komarov's article for details.
Upvotes: 0