CSS Layout For Websites - Why Using CSS in Web Design Layout is Better Than Table-Based Layout

Technology is constantly evolving and advancing andtable-based layouts. This usually results in the pages
nothing shows this more than the (short) history ofloading more quickly. Moreover, an externally linked
the web. Just a few years ago, the internet was fullCSS file, once loaded the first time, does not have to
of websites with blinking, animated icons andbe reloaded and re-read on every page. When using
background midi music and lots of people thought itCSS for layout, browsers can cache (keep in
was really great. Advance a few years forward and,memory) all the formatting and stylizing for your
although you still see those things from time to time,pages instead of having to read and interpret each
the web now contains much more sophisticatedstyle tag on every page. This can also result in much
elements like video clips, rss feeds, detailed flashfaster page loading times.
animations, and more.2. Visual consistency across pages One of the
As the "ideas" about what a website is and what itstrengths of using Cascading Style Sheets in a
should, or could, do for a company have alsowebsite layout is that design elements can be
evolved, designers have strived to streamline thedefined in a single place (the css file) and will
process of developing websites and to make themautomatically be applied to those elements on the
more efficient and predictable. Because differentwebsite. No longer does each individual page have to
browsers interpret code differently, it hasn't alwaysbe updated to reflect the new style. This makes for
been easy to make more complex websites look themuch greater consistency throughout the site. With
same (or even good in some cases) across browsersCSS, you do not have to re-code every element on
and systems. What used to work in the early daysevery page (and check and double check that you
of the web was no longer working the way webdidn't miss some pages!), styling updates are
designers wanted or needed it to.automatic and site-wide.
Cascading Style Sheets to the Rescue.3. Accessibility and usability CSS allows for more
Cascading Style Sheets, also known as CSS, wereinteractive style elements, including font size and line
introduced to improve the capabilities of webheights, which can make web pages more usable for
presentation. Prior to CSS, almost all of the htmlpeople with disabilities. Web pages that use CSS
attributes that made up the "look and feel" of a weblayouts are also often more compatible with more
page were contained within the html directly. Thisbrowsers. What's more, designers can create specific
made web page code heavy and often quite clunky.css files specifically for printing, or mobile devices, as
By using Cascading Style Sheets, designers couldwell as the standard computer screen, thereby
separate the design elements from the content of amaking websites truly multimedia applications.
web page and thereby make the pages more4. CSS is better for SEO Since pages load faster with
efficient, more streamlined, and easier to maintain.CSS Layouts, search engines can more easily crawl
Not all designers jumped on the CSS bandwagon, andthrough the site. Also, since there is often less coding
even today, many designers still prefer to layout theiron the pages and because CSS separates the design
web pages using html table-based design, the wayelements from the content, it is easier for search
just about everyone used to do it. Using CSS toengines to determine what a page is about and to
layout a webpage is quite different from the "oldindex it appropriately. Finally, search engine spiders
fashioned" table layout. However, the advantages torely heavily on structural organization (heading (h1, h2,
using a CSS layout for a web page heavily outweighh3, etc) tags) and CSS allows designers to design
any argument given for using html tables.those elements as needed and to place them within
Although I wouldn't expect clients to know thethe page layout in a way that is most beneficial for
intricate details of Cascading Style Sheets (and let'ssearch engine optimization.
face it, most clients don't really want to know much5. Future redesigns will be more efficient (read, less
if anything about it!), I do think that clients should beexpensive!) Since CSS layouts separate design
aware of the advantages of using CSS layouts andelements from content, once a site has been
how they can enhance their websites both now anddesigned using Cascading Style Sheets, making
in the future.changes to the design is often easier because fewer
Advantages to Using CSS for Web Layoutfiles need to be updated (often only the css files
rather than every page on the website!) This makes
1. Web pages will load fasterfor faster and less expensive design changes in the
No one likes waiting for web pages to load and if afuture. Set your site up using CSS now and you can
page takes too long to load, many users will oftenhave easier, more efficient and quicker updates in
simply leave. Generally speaking, CSS based pagethe future.
layouts require much less html coding than