Blog anything about

computer tips and tutorials. The power on your side..

Here’s a quick tip for today. Usually, I code Wordpress themes for my blogs using Crimson Editor by hand. I think it’s better than what we can get from the notepad built-in Windows because the original notepad has limited undo and redo function. So it’s quite a pain in the ass to revert the changes if we did a mistake while coding.

Back to the title you might wonder how you can optimize your CSS file so that you can shorten the time for your website to load. Fortunately I found a website called Clean CSS introduced by a friend and also a famous Malaysian tech blogger Cypherhackz in his blog.

Clean CSS is a nice utility that will tidy up your CSS file by shorthanding the CSS properties and eventually trim down the overall size of the CSS file. It will also remove unnecessary things. Look at the example below to understand how it works:

Instead of this (the original untidy CSS)

#nav a {
color:#999;
text-decoration:none;
padding-left:14px;
padding-right:14px;
padding-top:6px;
}

It will convert it into this (optimized one)

#nav a {
color:#999;
text-decoration:none;
padding: 6px 14px 0px 14px;
}

While some might say that professional web developers won’t need this, I suppose it’s still useful for beginners to learn how to write better, semantic codes from the result produced.

Try Clean CSS out | Credit: Cypherhackz


Comments (4)Posted by Super Admin on Saturday, April 14th, 2007

Related Entries

  • Optimize Celcom Broadband Connection
  • How to Optimize Ad-Aware SE Personal’s Scanning
  • Speed up your file download with IDM
  • 4 Responses to “How to Optimize your CSS file” Add your own

    Post A Comment

    Tag and more tags for this post

     how to optimize CSS (3)  optimize css file (3)  streamyx optimize (2)  optimize css (2)  protect css file (2)  css optimize (2)  streamyx optimize (2)  inserting mp3 in CSS (2)  css shorthanding (2)  compare css files (2)  revert optimized css (1)  Optimizing Your Streamyx Connections (1)  how to insert mp3 player in css web theme (1)  clean css file examples (1)  how to optimize CSS files (1)  how to boot computer optimized for css (1)  se optimize css (1)   css optimize (1)  CSS optimized color (1)  shorten your css code (1)  css optimize (1)  m3 (1)  optimizing your css (1)  how to clean a css file (1)  css from file on computer (1)  css streamyx (1)  optimize css in wordpress (1)  css tidy opimized (1)  tidy css file (1)  css undo padding (1)  how to protect your css file (1)  malaysian css websites (1)  optimizing css files (1)  protect your CSS file (1)  free & compare CSS files (1)  optimize css (1)  css optimize for wordpress (1)  optimized streamyx connection (1)  mp3 player css file (1)  remove brontok.a 16 virus (1)  "css file examples" (1)  protect css files (1)  css optimizing (1)  optimize css unnecessary (1)  clean css blogger code (1)  tips to shorten your web page CSS (1)  optimizing css codes (1)  optimize your css (1) 

    Disclaimer: The owner of this blog will not be responsible for the outcome of the usage of the contents
    in this blog. Certain posts may not be relevant in the future and the owner can only guarantee that
    the posts were accurate as they are supposed to be at the time the post were first published.