I researched for a while, hasn’t found a CSS solution yet, em and ex units are not correct in this case. What I want is simply a div box that exactly fits 80×25 monospace text. Do I have to resort to Javascript solutions?
I researched for a while, hasn’t found a CSS solution yet, em and ex
Share
emdoes work in this case, if you know the proper ratios involved with your font. Try the following HTML:(The danger with this is that some browsers adjust the font, which can alter the width/height of the font. For 100% accuracy, you might have to go with JavaScript.)