Skip navigation.
Those web applications that I've seen so far practice templated type of skinning rely on FindControl() to locate controls on respective skins and assign them text or color values. FindControls() is quite a slow method and abusing it adds unnecessary overhead.
FindControl()
FindControls()
Another issue with templated skins is the sheer bulk of markup. These skins are traditionally laid out with archaic nested tables, font tags and other meaningless markup. Don't get me wrong—tables are an inalienable part of HTML but their use—or more of abuse—to design web applications has lead to bloated pages and degraded performance.
There's a better way. A much better way. Enter CSS.
The power of web standards is to separate structure (XHTML, HTML) from presentation (CSS). Some benefits of CSS design over tables, font tags and other outdated methods are:
This is by far not an exhaustive list of benefits of using CSS. See this nice summary of top 10 reasons to learn CSS and CSS Based Design.
This article would sound like a sale pitch if I didn't mention some drawbacks of using CSS for skinning:
This could be a long and heated debate about the level of compatibility of modern browsers with the web standards, or tables vs clean markup, and so forth. But I want you to remember this much—web standards are here to stay. Whether you follow them or practice old ways of developing web applications it's up to you.
With the help of CSS you have an excellent opportunity to spice up your web sites with cool skins with a fraction of the effort compared to templated skins. What is required of you is to take a commitment and start embracing web standards. Do you want a faster site? Do you want to pay less for reduced bandwidth? Do you want to allow more users to access your web application simultaneously? Do you want to make your site accessible to a larger audience of users? This road isn't an easy one but it sure is worth it!
Liked it? Hated it? Discuss this article
My designer and developer OPML feed subscriptions are available for grabs.