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 How to Make a Website CSS: Cascading Style Sheets Center the Wrapper

Portia Pettersen
Portia Pettersen
723 Points

I seem to be having issues at this stage with the preview that I can see of the site and implementing the css.

From the point of adding the 'main.css' file I've not seen any of the changes made, including color, background-color, text-decoration visually in the preview of the website. Any thoughts as to why? I've looked back at the code I have at my end and it seems to match what is in the video. Is this a technical error with the preview generated?

3 Answers

Vrund Patel
Vrund Patel
11,994 Points

In your index.html did you refer to main.css stylesheet?

Like this, for the below code you need to save your file in css folder or any folder you want just change the "css" to your folder name like foldername/main.css

<link rel="stylesheet" href="css/main.css">

Perhaps a silly question, but did you move your main.css stylesheet to the css folder? That's something I neglected to do, and I kicked myself for forgetting to do it.

Portia Pettersen
Portia Pettersen
723 Points

Thanks to everyone for the help. Overlooked the spelling of 'stylesheet'. Must keep an eye on that. Thanks again!