The forums ran from 2008-2020 and are now closed and viewable here as an archive.
Home › Forums › CSS › easy way to get width (no length) of text inside tage › Reply To: easy way to get width (no length) of text inside tage
There isn’t one since, with most fonts, characters are not all the same width.
The only simple method is to use a monospace font, where all characters ARE the same width.
Then you can use the ch length.
Frontend Masters is the best place to get it. They have courses on all the most important front-end technologies, from React to CSS, from Vue to D3, and beyond with Node.js and Full Stack.