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

Wes House
Wes House
1,727 Points

Importing more-styles.css

Hello: I've been trying to import the more-styles.css file into my css folder however every time I attempt to and refresh my page, nothing changes. the video was not very clear on how to go about using sublime text or how to go about properly importing files from the project files. I dragged the more-styles.css file to my sublime text editor and into my folder on my desktop but have a feeling this was not correct.

Just use the good old way of copy and paste the file manually in your desired folder.

3 Answers

Felix Yakubov
Felix Yakubov
17,475 Points

Wait...did you called the file in the page code? like @import or <link>?

Wes House
Wes House
1,727 Points

Thanks for the responses. I did include the @import but that didnt do anything. I started from scratch again to try to spot the problem but just ended up running into the same one but sooner.

i created a folder on my desktop called "adding css" where i placed my "index.hmtl" file and a subfolder inside adding css just called "css" where I put the styles.css file. When I go to open the index.html file in Google Chrome, none of the css styles are appearing. I have <link rel="stylesheet" href="css/style.css"> in the head section of index.html and the style.css in the "css" folder.

Also, I don't know if it matters but my index.html and style.css files have different icons next to them (index has chrome and style has safari).

Hope this makes sense. Thanks for the help!

Felix Yakubov
Felix Yakubov
17,475 Points

The icons doesnt matter. Can you paste the the code until <body> of your index.html? If you wrote <link type="text/css" href="css/style.css" rel="stylesheet"> it supposed to work fine...