Over a million developers have joined DZone.

CSS Beautifier

· Web Dev Zone

Learn why developers are gravitating towards Node and its ability to retain and leverage the skills of JavaScript developers and the ability to deliver projects faster than other languages can.  Brought to you in partnership with IBM.

 

CSS Beautifier

When you developing CSS for your website you will normally create your CSS in a way that makes it easier to read. This means each property will be on it's own line, you will have line breaks in-between classes and id's, you should even have comments between different sections of your styles.

This is great for developing as it keeps your styles organised, makes it easy for you to find styles, and has comments to explain what the styles are going to do. But the problem with this is that it will increase the size of the CSS file, when you use this on your website in a production environment it's important that your website loads fast. A good way of helping your website load faster is to minimize your CSS and Javascript files, this is because it will reduce the bandwidth needed for the file and will speed up your site.

It's easy to minimize your files you can either use a script to do this or make your IDE minimize your files.

But if all you have is the minimized file and you want to make some changes to this file it can be really hard to work out where your styles are, you need to un-minimize the file so you can see the styles in a readable way.

Here is a tool called CSS Beautifier which will allow you to enter minimized CSS and it will convert this into readable CSS for you. So if you only have the minimized file you can copy this into the tool and it will convert the entire contents to readable CSS.

Try it out.

CSS Beautifier

Make the transition to Node.js if you are Java, PHP, Rails or .NET developer with these resources to help jumpstart your Node.js knowledge plus pick up some development tips.  Brought to you in partnership with IBM.

Topics:

Published at DZone with permission of Paul Underwood, DZone MVB. See the original article here.

Opinions expressed by DZone contributors are their own.

The best of DZone straight to your inbox.

SEE AN EXAMPLE
Please provide a valid email address.

Thanks for subscribing!

Awesome! Check your inbox to verify your email so you can start receiving the latest in tech news and resources.
Subscribe

{{ parent.title || parent.header.title}}

{{ parent.tldr }}

{{ parent.urlSource.name }}