• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
0

Browsers are changing my font styles..

Explorer ,
Oct 06, 2020 Oct 06, 2020

Copy link to clipboard

Copied

Hello,

 

How do we prevent browsers from changing our css font styles..

 

Thank you so much for your support..

TOPICS
Browser , Code , How to , Performance

Views

177

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines

correct answers 1 Correct answer

Community Expert , Oct 06, 2020 Oct 06, 2020

If you're just putting font names found on your machine into the CSS of a page, they'll work locally, but fail when uploaded and viewed by devices that don't have those fonts installed.

 

You need to use fonts that are installed in most devices, called "web safe fonts" (very limited) or use CSS fonts that use a link to hosted font files either on your server or a third party server like Google.com/fonts (many, many more options)

 

https://www.w3schools.com/cssref/css_websafe_fonts.asp 
https://www.w3schools.com/css/css_font_google.asp


Votes

Translate

Translate
Community Expert ,
Oct 06, 2020 Oct 06, 2020

Copy link to clipboard

Copied

If you're just putting font names found on your machine into the CSS of a page, they'll work locally, but fail when uploaded and viewed by devices that don't have those fonts installed.

 

You need to use fonts that are installed in most devices, called "web safe fonts" (very limited) or use CSS fonts that use a link to hosted font files either on your server or a third party server like Google.com/fonts (many, many more options)

 

https://www.w3schools.com/cssref/css_websafe_fonts.asp 
https://www.w3schools.com/css/css_font_google.asp


Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Explorer ,
Oct 06, 2020 Oct 06, 2020

Copy link to clipboard

Copied

LATEST

Thank you for your time and helpful support.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines