Jump to content

Cross-Browser Font-Size


tinfanide
 Share

Recommended Posts

I'm creating a website and discover that in my site font-size is a little bigger in Firefox than in IE.I use px as the unit of texts. Is there a cross-browser fix?

Link to comment
Share on other sites

It doesn't really matter what you use, just don't expect it to look the same size on all browsers. The point is that you should not make a design that is dependent on the font being the right size.

Link to comment
Share on other sites

oh... but if my texts are placed inside a div, then the div has to be set "height: auto" in order to let the content decide the height of the div so that if the font-size is gettin bigger than expected, the div can still embrace it?

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...