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

Steve Caprarola
Steve Caprarola
436 Points

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

Andrew Shook
Andrew Shook
31,709 Points

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

Steve Caprarola
Steve Caprarola
436 Points

Within the Workspace

Andrew Shook
Andrew Shook
31,709 Points

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.

Alexander Melo
Alexander Melo
4,297 Points

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