I have this simple page:
<html>
<head>
<link rel="stylesheet" type="text/css" href="http://fonts.googleapis.com/css?family=Nunito">
<style>
#font {
font-family: 'Nunito', sans-serif;
font-size: 48px;
}
</style>
</head>
<body>
<div id="font">Text here!</div>
</body>
</html>
It works pretty fine when I open the file in the browser, but when I put it online in static folder in web2py (on the PythonAnywhere), nothing changes, the font looks like simple Arial. So, what is wrong? Thanks in advance.
Try changing the CSS link to:
<link rel="stylesheet" type="text/css" href="//fonts.googleapis.com/css?family=Nunito">
Removing the "http:" from the href will force the scheme to that of the parent page (in this case, "https").
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With