-
Delicious Bookmarks
- How To Market Your Mobile Application - Smashing Magazine
- Ajax Upload - ZURB Playground - ZURB.com
- RightSignature | Plans & Signup
See the way form jumps down when you scroll - SimplePress & BBpress : Integrating forums with Wordpress
- Membership Site Plugin – Wordpress Membership Plugin – MemberWing
- Affordable Wordpress Membership Plugin
- WordPress › Members Only « WordPress Plugins
Members Only - Extras - Learn what integrations work with Zendesk - Help Desk Software
- Logo Design - How It Works
- Logo Design - What You'll Get
- How To Market Your Mobile Application - Smashing Magazine
-
Recent Blog Posts
Archives
-
Recent Comments
This website uses IntenseDebate comments, but they are not currently loaded because either your browser doesn't support JavaScript, or they didn't load fast enough.




CSS Style Sheets: Why They Matter
For the average consumer of web design services, the move from table-based layouts, to css– or tableless-layouts, probably means little. However, it’s important that you know the basics of what CSS Style Sheets mean, and why you want to find a web designer that uses them.
This post is not designed to teach you CSS (you could go here, or here for that). It is designed to give you the bottom-line context as to why it matters to your website.
Bottom Line Summary:
Cascading Stylesheets, or CSS, a.ka. CSS Style Sheets, are a system that lets web designers’ jobs become much easier, freeing up their time to focus on making sites more beautiful, faster loading, and easier to use.
While CSS has been around for a while, the biggest developments happened when the majority of web browsers supported the use of CSS layout techniquest — that is, ways of laying out the page using CSS rules. Before this, web designers had to use HTML commands meant to represent tabular data — tables — stretching the use of HTML for tables far, far beyond its original intended use.
The bottom line for a web design customer is: If your prospective web designer does not design with CSS-based, tableless layouts, do not use that web designer. They are 5 to 10 years behind the times, and this lack of up-to-dateness will probably affect other aspects of their practice, as well!
And now, to the bigger context…
CSS Style Sheets Overview
A CSS style sheet is a special file, often contained as a single doucment on a website, along with the HTML files that represent the content of the site.
The HTML file points to (references) one or more CSS style sheets, which contain the formatting instructions. This leaves the HTML file to contain the content of the page, relieving it of the duty of representing the formatting.
For example, an HTML file might contain an instruction like the following. Let’s say the purpose here is to provide a caption that would go below a photo:
The corresponding CSS file, could then contain an instruction to provide formatting for the “caption” class, shown above:
.caption { text-align: center; color: #333; font-size: .9em; font-style: italic; }Now, let’s say this type of caption appears a hundred times throughout this website. All the web designer has to do is specify the “caption” class each time he or she wants the appropriate formatting to appear, knowing that the browser will refer back to the instruction in the CSS style sheet for formatting instructions.
In the “olden days,” before CSS style sheets, here is what that same HTML code might have looked like:
Now, notice how much more code is there, just to represent the same thing! Imagine that code repeated 100 times, and you’ve got some idea of what kind of savings CSS style sheets buy you.
But now, the real savings, comes in layout–the positioning of elements on the page.
CSS Style Sheets for Layout — Why It Matters
In the late 90’s and early 2000’s, as web design became more and more sophisticated, web designers found the need to specify more and more complex page layouts. They found that the easiest way to do this — often, the only way to do this — was to use the HTML codes intended to represent tables. Here is an example of a sensible use of tables:
The real function of tables was intended to represent tabular data, like the table above. However, web designers often found themselves using these same HTML codes to represent tables, within tables, within tables, just in order to layout a simple HTML web page, with, say, a footer, a header, and a sidbar.
<table> <tr> <td> <table> <tr> <td>cell</td> <td>cell</td> </tr> <tr> <td> <table> <tr> <td>cell..… Well, I hope you get the idea here. What you had in the above HTML example, was an extremely messy series of nested tables. And while you, as the viewer, wouldn’t have had to see the HTML code shown here–the web designer would still have had to deal with it, and that is the main point!
With the advent of CSS-based layout techniques, the underlying HTML code got much simpler. And what’s more, it made much more sense. The result was that layouts became cleaner, easier to maintain, and easier to develop.
While the complexity of table-based layouts almost demanded the use of special tools that shielded the designer from the HTML much of the time, with the advent of CSS-based layouts, it became much, much easier to work in the underlying code — reducing the need for fancy programs like Dreamweaver, and giving the careful web designer much more control over his code.
I hope this article gave some degree of context to a rather complex subject, without being either too overwhelming, or too general.