Pritam Kushwaha
Pritam Kushwaha

Reputation: 83

Font looks different in different browsers

I have used "Raleway" font in my webpage. But looks different in different browsers. Is there any way to fix the problem?

Here is the link that I have used.

<link rel="stylesheet" type="text/css" href="//fonts.googleapis.com/css?family=Raleway" />

Below is the image in crome and firefox view:

Click here to check Crome & firefox view image

In firefox fonts look little bit bold and shadowed.

Upvotes: 1

Views: 660

Answers (2)

Andreas Boyer
Andreas Boyer

Reputation: 82

body {
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
}

Upvotes: 0

ABHIJIT
ABHIJIT

Reputation: 689

Use This.

body {
    -webkit-font-smoothing: antialiased;
    -moz-font-smoothing: antialiased;
    -o-font-smoothing: antialiased;
    font-smoothing: antialiased
}

If not working

body {
    -webkit-font-smoothing: antialiased!important;
    -moz-font-smoothing: antialiased!important;
    -o-font-smoothing: antialiased!important;
    font-smoothing: antialiased!important;
}

Upvotes: 2

Related Questions