Quiz: Which CSS Snippet Is The Fastest?

CSS is an awesome tool for styling websites. It’s small, fast, and easy to learn. But like all code, there’s a right way, and a wrong way to write it. Badly written CSS renders slowly, impacting on the perceived speed of your site, and even damaging your SEO.

Writing fast CSS is about knowing your CSS selectors, knowing your shorthand, and understanding how properties are best applied. What better way to spend the final Friday in April, than on a CSS pop-quiz. Have fun!

Source

p img {display:inline-block; margin-right:10px;}
.alignleft {float:left;}
p.showcase {clear:both;}
body#browserfriendly p, body#podcast p, div#emailbody p{margin:0;}

The post Quiz: Which CSS Snippet Is The Fastest? first appeared on Webdesigner Depot.