Messy CSS codes just cause problems in coding. It's always hard to edit messy CSS files on your notepad. Well formatted CSS codes are really easy to read and edit. While creating templates, we write hundreds of CSS codes, and it's really hard for us to format all lines.
Also, when we write CSS codes for others, we really don't focus on code formatting, which cause some problems in future when we have to re-edit those stylesheets.
If you're thinking about to manually formatting you old codes, then it's just a waste of time when we can use an automatic CSS formatting tool.
CSS Beautify automatically formats your style to be consistent and easy to read. It's an open-source project from Sencha Labs. If you want then you can also download this tool at this link.
By using CSS Beautify, you'll be able to format you CSS codes in no time. It's way too much easy, even for Justin Bieber fans(no comments on this point).
Just put your messy CSS codes in first field, and you'll get beautifully formatted CSS code instantly:
Hope this will help you in future....Also, i want to share this good news with you all.