The CSS font style functions perfectly in a sandbox environment, however, fails to display properly when implemented on a webpage

Currently troubleshooting a CSS font issue on my webpage and can't figure out why it's not working. Here is the link to my page:

The text appears in Arial for some reason. If you copy and paste the code from the page into CSSdesk, the CSS works fine:

Any ideas on what could be causing this issue?

Answer №1

Make sure to include https in your import link, such as:

@import url(https://fonts.googleapis.com/css?family=Geo&subset=latin);

instead of using:

@import url(http://fonts.googleapis.com/css?family=Geo&subset=latin);

The reason for this change is that your website is being served via https, while the font you want to use is being loaded from an insecure URL (i.e. http). To ensure security, it's essential to have https in your import URL within the style tag.

I trust this explanation clarifies things for you!

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

How can I create a fixed class="form-row" and align a label and textbox in a horizontal line?

I encountered an issue with my simple bootstrap form that contains the following fields: The Labels and text box are not aligned properly in a straight line. When adjusting the size of the Notes field, it affects the positioning of the other fields causin ...

Connect an HTML button to a Java activity

I am currently developing an Android app for my book and I have created an HTML page. I would like to add a button on this page that is linked to the following Java code: public class MainActivity extends Activity { @Override public void onCreate(Bundle ...

The modal in Angular15 will automatically show the date decremented by 1 day whenever it is displayed

Every time I open the date field in a modal, it decrements by one day. Here is the associated typescript file: dob!: DatePipe; rescueDate!: string; dateAdded!: string; openEditPetMenu(template: TemplateRef<any>, petId: number, name: string, ...

`The toggleClass function will only respond to the first click in Internet Explorer and Firefox browsers

This is my first time asking for help as I usually find the answers myself, but this issue has me stumped. Here's what I have: HTML <!-- This div opens/shows the navigation. I need to change the div to a button tag --> <div class="menu"> ...

Troubleshooting Alignment Problems within Bootstrap Containers

As I embark on my journey of constructing my inaugural website using Bootstrap 4, a wave of questions has flooded my mind. These queries either remain unanswered or beckon for further clarification. Shall we dive into them? Is it considered standard pr ...

Ways to broaden the map of a variable in SCSS

Currently, I am utilizing a package known as Buefy, which acts as a Vue.js wrapper for the Bulma CSS framework library. Within Buefy's template components, there is an attribute/property called type (e.g., type="is-warning"). According to the document ...

Creating a layout with four columns in the Bootstrap grid that will automatically collapse to two columns and then one column as

Check out my progress with Bootstrap: <div class="container-flex"> <div class="row"> <div class="col-lg-3">1</div> <div class="col-lg-3">2</div> <div class="col-lg-3">3</div> <div class="col-lg-3">4< ...

Tips on incorporating AJAX sorted outcome into HTML divs

Hey there, I have successfully implemented AJAX, PHP and MySQL Sorting to display results in tables, as shown in the code below. Now, my query is: How do I display the $result in HTML divs instead? Your assistance is highly appreciated. Here is the PHP c ...

Various forms of HTML Canvas shapes

I have been working on a HTML Canvas and after checking, I found that it has width and height attributes. However, I want my canvas to take the shape of something specific, like a Star or any other PNG image that can be converted into a canvas. I have expe ...

Display element exclusively when nav-tab is in an active state in Bootstrap 4

I'm working on creating nav-tabs with a unique feature where an arrow is displayed only on the active tab. How can I make this arrow disappear when another tab is clicked? Alternatively, how can I move the arrow to point to the content of the selected ...

When hovering over individual links within a set of blocks, ensure that the other links are not affected or disrupted

I need help creating a forum category link guide. Similar to this example... Specifically, I want it to display as Forums > The Financial Roadmap Two issues I am facing are: when hovering over the link, it shifts down one row and how can I add blocks ...

Do Bootstrap "col" classes function with HTML tags other than a div element?

Are there preferred methods for utilizing the "col" classes in Bootstrap? example 1 - The following approach has been validated: <div class="row"> <div class="col-12"> <h1> Heading</h1> </div> </div> e ...

Perform an action in Django when a button is clicked using HTML onclick event

How to integrate HTML form on Django to perform actions using buttons? Check out the HTML code snippet below: <form name="bookappointment" class="form" method="POST> {% csrf_token %} <br> <input type ...

Choose a trio of columns using jQuery

Is it possible to target three specific columns using jQuery or CSS, like this: Take a look at the example code below: <script> //I am attempting to target specific columns with this code snippet $('GvGrid').slice(1, 3).css("backgroundC ...

Apply a dual-color gradient background vertically

I am trying to figure out how to achieve a two-tone background color in an HTML document. I know this question has been asked before, but I specifically want the colors to be split vertically rather than horizontally. ...

Using focusout and clicking buttons do not effectively interact with child elements

I have a series of div elements, each containing a button. When I click on a button, text is displayed, and when I click away, the information hides with a focus-out function. If I have one button open and then want to click on another parent button, it wo ...

Struggling to get image properly aligned using touch gestures

Currently, I am struggling with the task of centering my image based on the touch input that will drag it. For example, if the user touches the top right corner of the image, I want the image to automatically move so that its center aligns with that touch ...

Adjusting the size of images using CSS

Assuming an image has dimensions of 200px by 200px and is assigned a CSS class with the same measurements, will the browser retain the image size or still attempt to resize it through CSS? Lately, I have been investigating ways to decrease page loading ti ...

Tips for comparing an input value with a data attribute

I'm having trouble getting my input value to match a data attribute within my code. Here is an example of what I am trying to achieve: HTML: <input value="" data-match="Training"> jQuery: var wrd = $('.js-search-input').data(' ...

Adjusting the position of keyframes on an element

<div id="carousel"> <figure> <img src="http://www.codehub.com/css-carousel/images/slides/a.png" /> <img src="http://www.codehub.com/css-carousel/images/slides/b.png" /> <img src="http://www.codehub.com ...