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

My CSS changes aren't showing up and I can't seem to find any errors in my HTML.. Help!

I have followed along with the videos and I can't seem to find any errors in my HTML or CSS. Not sure if it matters but I'm using google chrome.

3 Answers

Jeremy Hayden
Jeremy Hayden
1,740 Points

Need to paste your code Sarah, so we can look it over.

Joshua Holland
Joshua Holland
2,865 Points

I am fairly new myself but I believe it may have to do with the link to your CSS file. I think you need to tell the website to read your css document as text like this...

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

Otherwise your code looks good to me. I would make sure that your files are saved correctly with the html and css files in the same folder, otherwise you must specify the file path.

Also, I'm not sure if you just didn't post the entirety of your code but you seem to be missing your doctype and charset at the beginning of your html.

Hope this helps.