Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums CSS Styling text as rows of pixels? Re: Styling text as rows of pixels?

#49167
edanders
Member

I finally ended up re-generating the html with inline CSS in each tag to set the pixel width, then set “overflow: hidden” and “white-space: nowrap” properties. This let me set the spans to be (for example) 26px wide if there were 26 characters inside. I did have to break the lines manually, which is annoying, but doable.

Ed