Mike Strong
Mike Strong

Reputation: 950

Is there anything I can do about different browsers rendering fonts differently?

I have a UL whose LI are styled with the following:

Ul li {
  padding: 10px;
  color: white;
  font-size: 2vw;
  font-family: "Helvetica Neue";
  font-weight: 200;
  font-style: normal;
  border: 0;
   outline: 0;
   background: transparent;
   border-bottom: 1px solid rgba(9, 0, 0, 0.3);
   -webkit-appearance: none;
    border-radius: 0;
}

However the fonts looks different, a little thicker in Chrome:

enter image description here

Then it does in Safari:

enter image description here

I prefer the Safari rendition, how can I get the font to be rendered identical in every browser?

Upvotes: 0

Views: 892

Answers (1)

Sarah Groß
Sarah Groß

Reputation: 10879

The short answer is: no. It's really a pain in the ... But you can try to make things better by using -webkit-font-smoothing: antialiased; and -moz-osx-font-smoothing: grayscale; on the HTML element in your CSS.

Upvotes: 1

Related Questions