Home › Forums › CSS › Styling text as rows of pixels? › Re: Styling text as rows of pixels?
April 26, 2011 at 5:51 pm
#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