Why A CSS Website Layout Will Make You Money
CSS- What is it?
CSS is a style sheet language that allows web designers to attach style (fonts,
spacing, colors, etc.) to HTML documents. Cascading style sheets work like a template, allowing Web developers to define a
style for an HTML element and then apply it to as many Web pages as they'd like. CSS separates the presentation style of documents
from the content of documents simplifying site maintenance. (We won't cover the technicalities here, but check out our recommended
reading at the end of the article for more on the actual implementation of CSS.)
Win-Win-Win Situation
Cascading style sheets, when used properly, can enhance your site design for
viewers, ease the maintenance load for the webmaster, and improve search engine rankings. We'll get to how one tool can do
so much, but first- the basics on CSS for those who have not yet met the web design superhero.
Although CSS layouts have been around for years, they haven't become so commonplace until recently. This was basically
due to limited browser support (especially from Netscape 4) - nowadays though, CSS 2.0 (which introduced positioning) is compatible
with over 99% of browsers out there (check out the browser stats over at http://www.thecounter.com/stats/2004/August/browser.php).
So, why should you convert your website from its current table-based layout to a CSS layout? It'll make you money.
Simple really. And here's four reasons to explain why:
Reduced bandwidth costs
Web pages using CSS for layout
tend to have much smaller file sizes than those using tabular layouts. It's not unusual to see reductions of 50% or more in
file size when switching from CSS to tables. Smaller file sizes obviously mean reduced bandwidth costs, which for high traffic
sites can mean enormous savings.
The main reason for this dramatic decrease in file size is that presentation information
is placed in the external CSS document, called up once when the homepage loads up and then cached (stored) on to the user's
computer. Table layouts on the other hand, place all presentation information inside each HTML, which is then called up and
downloaded for every page on the site.
Additionally, CSS can be used to replace JavaScript image rollovers, again
allowing a large reduction in overall page size. See the article, CSS navigation menu for more on this (http://www.webcredible.co.uk/user-friendly-resources/css/css-navigation-menu.shtml).
A higher search engine ranking
A CSS-based website will appear higher in the search engine rankings for three
reasons:
- The code is cleaner and therefore more accessible to search engines
- Important content can be
placed at the top of the HTML document
- There is a greater density of content compared to coding
A higher
search engine ranking means more site visitors, which, provided your website is usable, should lead to an increase in enquiries
or sales.
Faster download speed
A faster download speed will make you money? Well, yes. Slow download speed
is often cited as one of the biggest usability complaints for websites. A faster download speed therefore leads to increased
usability, and a web usability redesign can increase the sales/conversion rate by 100% (source: http://www.useit.com/alertbox/20030107.html).
CSS downloads faster than tables because:
- Browsers read through tables twice before displaying their contents,
once to work out their structure and once to determine their content
- Tables appear on the screen all in one go -
no part of the table will appear until the entire table is downloaded and rendered
- Tables encourage the use of spacer
images to aid with positioning
- CSS generally requires less code than cumbersome tables
- All code to do
with the layout can be placed in an external CSS document, which will be called up just once and then cached (stored) on the
user's computer; table layout, stored in each HTML document, must be loaded up each time a new page downloads
- With
CSS you can control the order items download on to the screen - make the content appear before slow-loading images and your
site users will definitely appreciate it
Increase in reach
The more people you can reach, the more visitors
you'll get to your site and the more enquiries or sales you should get. A CSS-based website is compatible with PDAs, mobile
phones, in-car browsers and WebTV. Don't underestimate the importance of this: In 2008 alone an estimated 58 million PDAs
will be sold (source: http://www.etforecasts.com/pr/pr0603.htm) and one third of the world's population will own a wireless
device (source: http://www.clickz.com/stats/markets/wireless/article.php/10094_950001).
You can make an additional
CSS document specifically for handheld devices, which will be called up in place of the regular CSS document, thereby ensuring
your website is accessible to this lucrative market. This isn't possible with a tabular layout.
How to Begin Using CSS
Webmasters who've spent years patching and functioning with HTML may feel
hesitant to 'learn a new trick', but beginning to implement CSS into web design is not as difficult as one might think. If
you want to learn more about using CSS to enhance your web pages the following two resources have (free) cutting-edge information
and tutorials.
W3.org,
AListApart.com Conclusion: Switch to CSS!
Switching your website from a table layout to a CSS layout can be a long, arduous
process, especially for large websites. Given the money making possibilities though, it could very well prove to be well worth
it.