Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

HTML

Fonts not loading in Safari but works fine in Chrome??

Is my html ok? The fonts arnt working in Safari but work fine in Chrome.

<!DOCTYPE html> <html> <head> <title>AdamDesigns</title> <meta charset="UTF-8"> <link rel="stylesheet" href="css/reset.css" > <link rel="stylesheet" href="css/text.css" > <link rel="stylesheet" href="css/960_24_col.css" > <link rel="stylesheet" href="css/stylesheet.css" >

<link href='http://fonts.googleapis.com/css?family=Raleway' rel='stylesheet' type='text/css'>
<link href='http://fonts.googleapis.com/css?family=Exo+2:300' rel='stylesheet' type='text/css'> 

</head> <body>

<div class="wrap">
    <div class="head-wrap"><div class="head"></div></div>
    <div class="container_24">

        <?php include ('inc/head.php'); ?>
        <?php include ('inc/mid-home.php'); ?>
        <?php include ('inc/some-work-home.php'); ?>
        <?php include ('inc/footer.php'); ?>

    </div>

    <div class="footer-wrap"><div class="footer"></div></div>

        </div>

</body> </html>

1 Answer

Try simply changing the links from

<link href='http://fonts.googleapis.com/css?family=Raleway' rel='stylesheet' type='text/css'> <link href='http://fonts.googleapis.com/css?family=Exo+2:300' rel='stylesheet' type='text/css'>

to

<link href='https://fonts.googleapis.com/css?family=Raleway' rel='stylesheet' type='text/css'> <link href='https://fonts.googleapis.com/css?family=Exo+2:300' rel='stylesheet' type='text/css'>