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 Styling Web Pages and Navigation Style the Portfolio

I deleted my main.css file somehow. Can I get it back in a way?

Hopefully there is a way! :)

1 Answer

Hi there Nora.

Well I must say it sucks when those kind of things happen.

Question: did you delete the file in Workspaces or are you following along with your own editor and files?

if (answer === "Workspaces") { "Don't worry about it too much since you can download the project files or even easier launch a new workspace from the video you are currently following along. Sadly all your changes to the file will be lost (I hope you deleted it at the beginning) but you'll be back on track in no time." } else if ( answer === "Own Editor") { "You could always restore the deleted file from the trash ( presuming you didn't empty the trash)" } else { "Well all out of ideas..." }

A good tip for the future: make sure you archive your project files at the end of the day or before any big changes you make.

This could spare you a big headache and leave just a tiny headache instead.

Happy Coding!!!

n_WEB_d