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 CSS Basics (2014) Getting Started with CSS External Style Sheets

shirshah sahel
shirshah sahel
10,035 Points

I am stuck in a very simple task. I drag my new style.css file in css but it is not pasting there.

I am trying to simply drag style.css into CSS file but it is not pasting. how can I do that. is there any other way to put my style.css inside CSS file?

2 Answers

Jonathan Grieve
MOD
Jonathan Grieve
Treehouse Moderator 91,252 Points

Hi Shirshah,

What operatiing system are you using? Are you on Windows or using a MAC?

Also be sure that you have a working link to the external CSS file like this

<link rel="stylesheet" type="text/css" href="css/style.css" />

So this will look for a CSS file in a folder called "CSS" relative to the location of the HTML file.

Then you can try again and copy and paste the file into the CSS folder. Hopefully this time it will work :)

arik
arik
5,791 Points

I am on windows, and I never able to paste or drag a file into another folder. How to do that? Since by simply dragging it doesn't work. For this task to work I change the href location-considering style.css on its own file not inside a folder (css folder)

<link rel= "stylesheet"  type= "text/css" href= "style.css">