Changing the font style using HTML/CSS is not supported in Opera, Webkit, and IE browsers

I am experiencing an issue where I have chosen a font from Google Web Fonts and integrated it into my HTML and a separate style sheet as follows:

<link href='http://fonts.googleapis.com/css?family=Questrial' 
rel='stylesheet' type='text/css'>

Body {font-family: 'Questrial', sans-serif;}

Although I have followed the instructions for Web Fonts, the font displays correctly in Firefox but not in any other browsers. Can anyone offer some suggestions or solutions?

Thank you!

Answer №1

Check out this link to learn about which browsers are supported by Google Docs

The Google Web Fonts API is designed to work with the following browsers:
  • Google Chrome: version 4.249.4+
  • Mozilla Firefox: version: 3.5+
  • Apple Safari: version 3.1+
  • Opera: version 10.5+
  • Microsoft Internet Explorer: version 6+

In case someone using an unsupported browser accesses a page that uses the Web Fonts API, the text will be displayed using the next available font in your CSS font stack.

Answer №2

Checking out this informative chart on browser support for @font-face, it's clear that Webkit/Safari and Opera browsers do not currently support WOFF font format, the specific format this font is in. Additionally, WOFF format is only compatible with IE versions 9 and above.

Answer №3

I ran a test on your code in various browsers and found it to be fully functional on the following:

Internet Explorer 8, Google Chrome 15.0+, Firefox 7.0, Safari 5

I also discovered that the Google API is supported by the following browsers:

The Google Web Fonts API is compatible with:

  • Google Chrome: version 4.249.4+
  • Mozilla Firefox: version 3.5+
  • Apple Safari: version 3.1+
  • Opera: version 10.5+
  • Microsoft Internet Explorer: version 6+

I recommend testing with these browsers as well.

Thank you for your attention.

Similar questions

If you have not found the answer to your question or you are interested in this topic, then look at other similar questions below or use the search

When a user accesses a page, the UI-router shows the raw code in the UI-views

I am a newcomer to utilizing ui-router and I am facing challenges with managing routing and reloading some states. Any assistance would be greatly appreciated. An overview of my index.html <html ng-app="resApp"> <head></head> < ...

Utilizing the entire right side of a browser window, the Bootstrap carousel is displayed in full view

Trying to make the bootstrap carousel take up the entire display of the right side of a browser window. To achieve this, the margins of the carousel need to be adjusted so that the image is positioned in the center of the right side with maximum width (5/ ...

A div with an absolute position containing a header, content, and footer

How can I place a header, content, and footer inside a div element with absolute positioning, where the position value cannot be changed? The header and footer have fixed heights, and the content should occupy the remaining space. The header should always ...

Connecting two anchor elements with a straight vertical line

VISUAL REPRESENTATION Is there a way to add a vertical line between two empty elements in HTML without affecting the layout or interrupting the content? The line should be positioned to the left of the text and should span across multiple paragraphs regar ...

What is the method for binding 2 values with v-model?

While using the buefy <b-autocomplete> component, I encountered a situation where I needed to bind the Full Name into the input field. However, the data consists of list[index].first_name and list[index].last_name, with the index being from a v-for l ...

Changing CSS class on button click in React.js app

Is there a way to add a blur effect to my background when a user clicks a specific button? I want to update my CSS class accordingly. Below is the current CSS class: .post_options { width: 100%; height: 100%; float: left; background-color ...

Verify the tags associated with an element that has multiple tags

For a test I am conducting, I need to examine the tags and styles present in a specific element. The element, displayed on the page as bold, italic, and centered, looks like this: <p style="text-align: center;"> <em> <strong>TE ...

Unexpected behavior with animation duration in Safari

We have a project in the works that involves CSS animation. Our goal is to update the animation duration using JavaScript. Although this change is effective in most browsers, it seems to have trouble with Safari and iOS. Below is the code we are using to ...

The code written inside the <script> tag seems to be malfunctioning when placed in the component.html file within VScode while working with

I'm facing an issue where the script tag for jQuery included in index.html is not being executed within the component.html. There are no errors detected when inspected. Additionally, I have used another script for a toast message box. <script sr ...

Button with embedded Bootstrap dropdown

I need help with centering a dropdown menu on my webpage. I followed the instructions, but it's still appearing next to the button instead of in the center. Below is the code snippet: <div class="btn-group"> <button type=" ...

"Facing a dilemma with Javascript's Facebox getElementById function - not fetching any

Utilizing facebox, I am initiating a small modal dialog with a form and attempting to retrieve the value from a text field on that form using javascript. Below is the HTML code: <div id="dialog-form95" style="display:none"> <div class="block"> ...

Go to a different page section using MUI 5

I am currently working on a React application and I want to implement a functionality where pressing a button on my Nav Bar will navigate to a specific section on the first page. To achieve this, I have created an onClick function for my button: const onNa ...

How do I position an element at the center of a div using CSS?

Here is some HTML code that I need help with: <div id='nav'><a href ='./?page=1'>1</a> 2 <a href ='./?page=3'>3</a> <a href ='./?page=4'>4</a> <a href ='./?page=5&ap ...

Enjoy a fullscreen Youtube video embed with autoplay using Bootstrap's modal feature

https://codepen.io/JacobLett/pen/xqpEYE I recently watched a YouTube video where tapping on a button automatically played the video. I was impressed, but now I want to take it a step further and have the video play in landscape (full screen) mode when tap ...

Issue when attempting to update the background image using d3.js in browsers other than Firefox

I am experiencing a strange error that is puzzling to me. What I have done is placed a background image (SVG file) in a div using CSS. This SVG is used to create a Sprite animation, which is functioning correctly. .runner { background: url("0804_ ...

Single-use condition for checkbox functionality in JavaScript

As a newcomer to javascript programming, I am struggling to make a checkbox display two radio buttons only when it is unchecked, even after researching solutions. Here is my current code snippet: <span><strong>Not Available</strong></ ...

Unable to show input in Javascript HTML

Every time I try to run this code on my webpage, the buttons do not seem to respond when clicked. I am aiming to have the user input for full name, date of birth, and gender displayed in the text box when the display button is clicked. When the next butt ...

Ways to eliminate the gap between columns

I need to adjust the spacing between columns on my bootstrap, 3 column web page. Is there a way to do this without directly editing the bootstrap.css file? Thank you. <div class="container"> <div class="row"> <div clas ...

Incorporate div elements into the scene using the JQuery.throwable plugin

Attempting to enhance a jQuery function that inserts a new div into a parent div containing other divs with the JQuery.throwable physics engine applied. Created a <p> with the class .button and added this jQuery code: $(".button").click(function () ...

Looking for assistance with changing the class of a span when a radio button is selected

I'm facing an issue with toggling the class of a <span> when a radio button is clicked. <html> <head></head> <style type="text/css"> .eHide { display:none; } </style> <script type="text/javas ...