Search code examples
htmlcssstylesheet

Font size CSS problem in IE


<span style="font-size: 11pt;"> some text in "malayalam" language </span>

I am using the above code to control the font size of a particular part in a text. The font size worked perfectly in chrome and Firefox, but not in ie8, what to do ? I am new to CSS , plz help. I am using unicode to reneder my "Malayalam" font


Solution

  • Point (pt) sizes don't work reliably in browsers, I'd recommend pixels (px) or em's.

    A point is a unit of measurement used for real-life ink-on-paper typography. 72pts = one inch. One inch = one real-life inch like-on-a-ruler. Not an inch on a screen, which is totally arbitrary based on resolution.

    Via CSS-Tricks.com

    In more recent browser releases pixel support has become better and better, if you are working with Photoshop based designs you might find them easier than em's. If not, pxtoem.com can help.