website optimization

WebSiteOptimization.com

Higher traffic and speed guaranteed.™

   
   
Home Sitemap Publications Services About Contact
Newsletter:  

website optimization secrets book no critter yet cover

home > speed > 8

Chapter 8: Advanced CSS Optimization

Beyond the oft-cited benefits of cached CSS files and overall bandwidth savings, CSS allows you to substitute lightweight standards-based replacements for older, bandwidth-hungry techniques (like graphic rollover menus). This chapter shows you four general ways you can use CSS to speed up your site:

Figures

Code Listings

Summary

To fully optimize HTML code you've got to transform your code from tables to CSS layout. To optimize your style sheets use abbreviated names, shorthand properties, grouping, and multiple classes with common CSS declarations to shrink style sheets. Substitute CSS-based techniques for table- and JavaScript-based techniques like menus with rollovers. Use CSS to style your table alignment and background colors for speed and flexibility. Here's a summary of what you learned in this chapter:

Further Reading

Books

CSS: The Definitive Guide
Eric A. Meyer, (O'Reilly, 2000). A great introduction to CSS. See also Meyerweb.com.
Eric Meyer on CSS
By Eric Meyer (New Riders, 2002) - Meyer demonstrates real-world CSS with 13 conversion projects.

Sites

A List Apart
A List Apart by Jeffery Zeldman, et al. A good source of standards-based how-to advice, including CSS.
Body IDs
Mark Pilgrim demonstrates how to use body ids (and classes) to highlight menu items without resorting to SSI. One navbar, one stylesheet, different body ids (or classes) for each set of pages.
Cascading Style Sheets, 1, 2, and 3
World Wide Web Consortium - The official CSS specifications.
Christopher Schmitt's CSSBook.com
For Designing CSS Web Pages (New Riders, 2002)
CSS Edge
Eric Meyer's standards-based CSS playground
Dave Lindquist's list-based DHTML menus
These menus are under 6K
Introduction to CSS Layouts
By Eric Costello
WebStandards.org
The Web Standards Project by Jeffery Zeldman, et al. Now that they've convinced the browser manufacturers on standards, Zeldman and company have relaunched WaSP to sting the development tool makers.