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 Adding Pages to a Website Build the Contact Page

Help, I deleted my custom CSS page by accident.

Is there any way to restore. Otherwise I have to go back and re-do the last 6 modules.

5 Answers

Where did you delete the CSS file from? A work space, your computer, or a remote server?

Within the Workspace

In that case its most likely gone forever. Go to the last video you watched and download the project files. They are located at the bottom of the page near the teacher notes. They won't have all the CSS you did but It''l be a start.

I did the same thing with the index.html file, luckily I had the browser still open and I was able to view the source code. I recreated the file and cut and pasted my code. This was a quick and easy fix. Just for future reference.

Guys if any time you guys delete your file while on workspace, you can use CTRL + Z or CMD + Z to Undo.