Announcement!

Bid Oh Bid Directory - Bid your link to get higher position now!

I coded all my themes and CSS manually by using EditPlus 2, by hand. But when coded in text editor, your code might unstructureable and will slow down your site. That is why you need something that can optimize and tidy up your files.

Here has come a website called Clean CSS. Clean CSS is a nice utility that will tidy up your CSS file and will optimize it to make your site load faster. For an example, instead of

padding-top: 10px;
padding-right: 5px;
padding-bottom: 10px;
padding-left: 5px;

Clean CSS will tidy it into like this

padding: 10px 5px 10px 5px;

Beside that, Clean CSS will remove all unnecessary things and will pack your CSS file into smaller package.

Speed Up Your Site: Optimize your CSS [via Daily Blog Tips][tags]clean css, css, cascading stylesheet[/tags]

Subscribe me feed! If you enjoyed this article, get latest updates via RSS feed or by email.

10 Responses to “Tidy-up your CSS file with Clean CSS”

  1. wan
    March 29th, 2007 | 8:54 pm

    wow, very useful service. i found another site which also offer css compression (sorry, forgot the url already), but this one is better since it know how to combine similar css options into single line style :)

  2. Bat
    March 29th, 2007 | 10:24 pm

    I’m using Notepad++, btw, the one that yout point here is css shorthand..We can use it to margin and border properties also.. ;)

  3. novatech
    March 30th, 2007 | 1:58 am

    i just use standard notepad. i never thought both codes was differ in term of “clean” /:)

  4. aman
    April 1st, 2007 | 6:47 pm

    wow…just wanna release my new theme… :D

  5. HPK
    April 2nd, 2007 | 2:14 pm

    Gud tips bro..:) i’m using this tool for my code and i like it..:d

  6. xeroxaven
    April 3rd, 2007 | 2:35 pm

    font, background, padding, margin, border pun boleh buat cengitu gak.. :d

  7. aad_lfcfn
    April 9th, 2007 | 2:31 pm

    yer, bende ni banyak tolong bantu percepatkan loading site aku. :d

  8. yipguseng
    April 9th, 2007 | 7:09 pm

    erm, actually can have a shorter, which is
    padding: 10px 5px;

    applies to
    padding-top and padding-bottom: 10px
    padding-left and padding-right: 5px

    or padding: 10px 5px 12px;
    where
    padding-top: is 10px
    padding-left and right is 5px
    padding-bottom is 12px

    ;)

  9. » How to Optimize your Css file
    April 14th, 2007 | 9:31 pm

    [...] I found a website called Clean CSS introduced by a friend and also a famous Malaysian tech blogger Cypherhackz in his [...]

  10. Albert Araalie
    November 3rd, 2008 | 6:30 pm

    Thanks mate!

Leave a Reply