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

HTML How to Make a Website CSS: Cascading Style Sheets Center the Wrapper

CSS is not showing up when I preview

Last night I was adding the first bit of css code to main.css to basically take the underlines out. I kept trying to save and preview but the CSS was not showing the change. This morning, I opened a new workspace and started the Center Wrapper. I previewed just to see and the preview showed no underlines!

Now I'm modifying everything in this new unit and again nothing is showing up. I went back to the prior video from yesterday and rechecked all my code again and I can't find what is wrong.

Hey, Cindy, just a tip that I've seen, if you have trouble with coding try and get a picture of it so the crazy smart people on this site can better understand the problem and help you fix it. Hope this helps!

Antony Collett
Antony Collett
2,468 Points

Make sure you are refreshing your page each time you make a change. I've found that opening a new preview isn't enough, you need to hit refresh otherwise your browser will open the last cached page.

4 Answers

I found out from the help desk that my answers were correct but something is happening in my browser that is not making it show the corrected answers. Thank you for you help.

I've been trying to find information on posting a link to my code so it can be viewed so I could add it to my question. Can you direct me on this?

Sorry, I'm afraid not. I haven't done it personally, but I'm sure someone can tell you.

Thank you Kane! I'm trying to see if I can get the whole thing on a screenshot.

Graeme Oxley
Graeme Oxley
8,931 Points

Hi Cindy. I am glad you got your issue fixed. I just wanted to share some info regarding how to show your code in future problems.

  1. Screenshot - (Windows) Make sure the window you want to screenshot is active, and then press Alt+PrtScn (Print Screen key). This will make a screenshot of only the active window. Save the image (as a JPG) via an image editor, and then share it in your post.

  2. Codeshare - Use a code sharing website like https://codeshare.io/. The shared code will have an expiration date, but it should be enough time to get the help you are looking for.

  3. Paste the code directly into your text.

Best of luck.