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

Kellan Faker-Boyle
Kellan Faker-Boyle
4,393 Points

Can you reverse a compressed CSS file?

Often when I try to understand how CSS is written from existing websites, they have already compressed their CSS and it is very hard to read. Is it possible to reverse the compressed CSS without the original SCSS/Sass files, in order to make it read like nested or expanded CSS?

Thanks!

2 Answers

Yes, there are lots of sites online, extensions for most of the popular text editors, and a lot of programs have the functionality built in to make this possible. I'm not sure which editor you use, so I can't offer any insight into that way of doing it, but CodePen's online environment has a nifty little "tidy CSS" feature that will take a minified file and expand it out in the little window for you. I haven't had any issues using it for CSS.