loading..

loading, please wait...
Mohit Aneja a.k.a CSSJockey

CSSJockey.com

Hello! I am Mohit Aneja, Designer and Developer based in India.
I believe in creating a Unique & Practical Web Presence not just html pages.
If you need some cool stuff, let's talk :)

How to read minified CSS with ease?

Today we have a quick tip for those who feel depressed and cry when they see the holy grail of CSS in one single line in their website / theme stylesheets.

Recently I started hearing from a lot of people complaining about their theme developers using minified CSS in their themes for maximizing performance without any consideration for their ease of use / customization. People keep asking me if there are tools that convert minified CSS back to normal human-readable form and recently someone even asked me to do a job – normalize some minified stylesheets (of course I didn’t do it and rob him off!)

Whether or not developers should minify CSS when giving out themes / websites has been a subject of debate for a long time but why developers choose to minify some parts of their stylesheets has often been overlooked. Performance issues for larger projects, minifying the reset styles (you don’t have to change them anyway!) and non-developer license are just some of the reasons!

Anyway, coming back to the subject of this post – How can you read minified CSS with ease?
(No, we are not going to install any 3rd party software!)

Simply validate the CSS (only the minified part if you have other files attached as well) in question using the W3C’s CSS Validation service!

The output of the validation check is:

  1. whether or not, your CSS validates to standards set by W3C.
  2. Normal, Properly Formatted and Easily Readable version of your minified / compressed CSS

You need to keep the formatted and decompressed CSS? Just copy it from the validation output and replace your version. Voila!

You may also like to read..

14 Comments on How to read minified CSS with ease?


  1. Mar 05, 2013 / Toufiq:
    helpful! Reply
  2. Jan 29, 2013 / Joe:
    Thanks for clearing the minify gimic. Any chance there is a tool to do the same for minified JS files? Reply
    1. Mar 02, 2013 / Mohit Aneja:
      Yes, I found one website but don't really trust the same. You can try google search to see what's available. Reply
  3. Nov 06, 2012 / Jami:
    Ha genius!!!!!!!!I spent hours looking for a good solution. Thanks a bunch!!!! Reply
  4. Aug 09, 2012 / N1:
    Nice one Love you for that! Reply
  5. Jul 11, 2012 / AlanPHP:
    Been searching for a way to do this for the past hour, really neat trick THANKS :) Reply
  6. Jun 20, 2012 / Zakir:
    good one. but i use firebug built-in css.its fast and quick. w3c takes time to load if my css is big. For me firebug built-in css iis fine. Reply
  7. Apr 15, 2012 / Samiullah:
    Before this post i was googling "deminify css" but w3c css validator does it for us! Reply
  8. Mar 09, 2012 / Nikhil:
    Awsome Man! Thnx for such a lovely tip.... cheeeeers. Reply
    1. Mar 12, 2012 / Mohit Aneja:
      Your welcome, I am glad you like this one.. Stay tuned for more.. Reply
  9. Jan 12, 2010 / Partner Suche:
    simple and effective - thx! Reply
  10. Oct 17, 2009 / Cody:
    Oh nice, what a useful but effective trick. Reply
  11. Oct 12, 2009 / Leo N.:
    Lovely trick, but you should have charged him something though—expertise is not free, regardless of how much or how little effort is involved in applying it. Reply
    1. Oct 12, 2009 / CSSJockey:
      I agree with you and I could have.However, I believe in sharing best practices and long-term relationships. I finalized a Custom Wordpress Theme project with the same person and the deal is finalized on much more I would have charged him for this simple solution and put a full stop to his trust in me. I believe sharing best practices adds a lot to your brand. Reply

Leave a Reply

Stay up-to-date

Get latest tutorials and articles directly in your email.

Subscribe in RSS Reader

Connect via Facebook

Follow me on Twitter

Visit our Google+ Profile

Connect via Skype

I keep my Skype open all day long while I work on my computer.
Feel free to ping me to start conversation.

I love good conversations!!
If you have some big ideas, suggestions, feedback,
or want to discuss your project give me a shout.

 
%d bloggers like this: