-
Step 1
Look at available CSS optimizers online. Different optimizers work in different ways, maybe focusing on different CSS standards. An optimizer might focus on color and style definitions, for example, and re-format a few words or characters to enhance your code or cut out waste.
-
Step 2
Run your CSS code through the optimizer.
-
Step 3
Take a good hard look at the code and what the optimizer has done to it. How did it change? Are the changes ones that you prefer, or do you think the program messed up your code?
-
Step 4
Make some basic lists of what you thought the program changed for the better, and what, if anything, you think was changed in error. This will help you use the optimizer for its strengths in the future.
-
Step 5
Go over the code again and hand-code changes you think are necessary. This combination of software use and common sense should help you craft your CSS code into something shorter and better.







