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

CSS

Adding a custom.css to my website.

I am on the Bootstrap tutorial with Guil. I am trying to add a <link> to add the css/custom .css but i am getting this error on the console?

GET http://port-80-lesd61c3qu.treehouse-app.com/css/custom.css
can anyone help? !DOCTYPE html> <html lang="en"> <head> <title>Full Stack Conf</title> <!-- Required meta tags --> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">

<!-- Bootstrap CSS -->
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0-beta/css/bootstrap.min.css" integrity="sha384-/Y6pD6FV/Vv2HJnA6t+vslU6fwYXjCFtcEpHbNJ0lyAFsXTsjBbfaDjzALeQsN6M" crossorigin="anonymous">
  <link rel="stylesheet" href="css/custom.css"> 

</head>

<body id="home"data-spy="scroll" data-target=".navbar" data-offsets="100">

1 Answer

Steven Parker
Steven Parker
231,261 Points

Your link is looking for the file in the "css" sub-folder, but the file appears to be located in the main folder. You can either change the reference location in the link, or move the file into the css folder.

P.S. Your preview URL is temporary, for sharing a workspace in the forum make a snapshot of your workspace and post the link to that instead.

thank you!