Tech News: 7 Principles Of Clean And Optimized CSS Code
Some of you may remember the days when 30KB was the recommended maximum size of a web page, a value which included HTML, CSS, JavaScript, Flash, and images. With the popularity of CSS layouts and JavaScript-enriched web page experiences, it’s not uncommon, particularly for large sites, for the CSS files alone to jump well beyond that 30KB ceiling. 1
But there are some principles to consider during and after you write your CSS to help keep it tight and optimized. Optimization isn?t just minimizing file size ? You?ll find that the more knowledge you have about optimal CSS practices, smaller file size will inevitably come as an direct result of their implementation. You may already be familiar with some of the principles mentioned below, but they are worth a review. Being familiar with this concepts will help you write optimized CSS code and make you a better all-around web designer. 2
You can now share personal files with your friends, fans, and the Pownce community at large. They have also increased the base file size limit from 10MB to 100MB. Pro users now can upload 250MB. 3
Optimization isn ?t just minimizing file size ? You?ll find that the more knowledge you have about optimal CSS practices, smaller file size will inevitably come as an direct result of their implementation. 4
The EM is a measurement just like PX or PT. One EM is equal to the pixel measurement of the current font size. So, for example, 1em on a web page with a font size of 16px equals 16px. 5






