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
Maya Liberman
Full Stack JavaScript Techdegree Graduate 26,360 PointsHelpe me with basic CSS. Can't connect my CSS files to the index file.
I am trying to build a page like this: www.brayergroup.com Here is the html file https://w.trhou.se/mrxsshuku3
I took some CSS files from some basic courses here and tried to start working on the CSS. But it seems that these styles are not connected to the index file. What did I do wrong?
2 Answers
Serhii Lihus
6,352 PointsHi there Maya!
I think that problem is in folder name, where you are storing css files. In your case folder name is *CSS * (all letters are capital). Because of this, it cannot find files that are needed to apply styles for page.
In html code, inside of link tag, in href attribute you need to change
<link rel="stylesheet" href="css/normalize.css">
<link rel="stylesheet" href="css/main.css">
<link rel="stylesheet" href="css/responsive.css">
on
<link rel="stylesheet" href="CSS/normalize.css">
<link rel="stylesheet" href="CSS/main.css">
<link rel="stylesheet" href="CSS/responsive.css">
Hope this will help ;)
Best regards.
Maya Liberman
Full Stack JavaScript Techdegree Graduate 26,360 PointsDear Serhii,
You are right! I owe you a coffee!!!!!
This is a very small but crucial mistake. Thank you so much!
Alexander Davison
65,469 PointsCan you give Serhii Lihus a best answer so that this question will appear as "Answered" in the Community? Thank you! ~alex