djsahay — 2012-02-16T00:20:18-05:00 — #1
i am new to web development and basically working with html and css.
while applying css to the titles or to menu items what i found is that the text appears normal in firefox or in other browsers except the IE in which it appears somewhat to be a little expanded or stretched. Because of this the alignment of the titles and the menus on the whole web site gets disturbed and the layout of the whole web site gets changed..
what can be done regarding this ??
i used google fonts on my site which i thought would give a standard font for all the browsers but nothing came out of it..IE also affects these fonts.
ralphm — 2012-02-16T01:03:13-05:00 — #2
Hi djsahay. Unfortunately, you can never get fonts to appear exactly the same cross browser, because each browser / system has its own way of displaying them. You could serve up some IE-only code to reduce the letter spacing, but it's a burrow you are pretty much better off not going down. Either accept the display as it is (people can always use Chrome or another browser if they choose) or perhaps try a different font that looks better.
ryanreese — 2012-02-16T08:51:26-05:00 — #3
You need to be less restrictive as to how things look on your website. As Ralph mentioned, each browser won't dipslay exactly the same. It's just not feasible to expect a result like that.
Your best bet would be to rework your code to allow for some leeway aesthetically.
system — 2012-02-16T13:20:25-05:00 — #4
It also depends on how you are declaring the fonts -- some elements (tables come to mind) don't inherit fonts the same way, particularly if IE ends up in 'quirks mode' instead of 'standards mode'... but really to further diagnose we'd have to see the code for the page (or even better a live copy) since without seeing what it is you are actually doing, we can't really weigh in on it more. Without seeing what you are doing, anything we tell you is a wild guess.
Though personally, I've had nothing but bad luck trying to use Google fonts -- which is why I generally use font squirrel and host myself; or don't bother.
system — 2014-10-07T21:57:13-04:00 — #5
This topic is now closed. New replies are no longer allowed.