Home > Mobile Web Design > CSS Layout for Websites — Why Using CSS in Web Design Layout is Better than Table-based Layout

CSS Layout for Websites — Why Using CSS in Web Design Layout is Better than Table-based Layout

Wednesday, July 22nd, 2009 | Mobile Web Design
CSS Layout for Websites -- Why Using CSS in Web Design Layout is Better than Table-based Layout

Technology is constantly evolving and advancing and nothing shows this more than the (short) history of the web.  Just a few years ago, the internet was full of websites with blinking, animated icons and background midi music and lots of people thought it was really great.  Advance a few years forward and, although you still see those things from time to time, the web now contains much more sophisticated elements like video clips, rss feeds, detailed flash animations, and more.   

As the “ideas” about what a website is and what it should, or could, do for a company have also evolved, designers have strived to streamline the process of developing websites and to make them more efficient and predictable.  Because different browsers interpret code differently, it hasn’t always been easy to make more complex websites look the same (or even good in some cases) across browsers and systems. What used to work in the early days of the web was no longer working the way web designers wanted or needed it to.

Cascading Style Sheets to the Rescue
Cascading Style Sheets, also known as CSS, were introduced to improve the capabilities of web presentation.  Prior to CSS, almost all of the html attributes that made up the “look and feel” of a web page were contained within the html directly. This made web page code heavy and often quite clunky.  By using Cascading Style Sheets, designers could separate the design elements from the content of a web page and thereby make the pages more efficient, more streamlined, and easier to maintain.

Not all designers jumped on the CSS bandwagon, and even today, many designers still prefer to layout their web pages using html table-based design, the way just about everyone used to do it. Using CSS to layout a webpage is quite different from the “old fashioned” table layout.   However, the advantages to using a CSS layout for a web page heavily outweigh any argument given for using html tables.  

Although I wouldn’t expect clients to know the intricate details of Cascading Style Sheets (and let’s face it, most clients don’t really want to know much if anything about it!), I do think that clients should be aware of the advantages of using CSS layouts and how they can enhance their websites both now and in the future.

Advantages to Using CSS for Web Layout

  1. Web pages will load faster
    No one likes waiting for web pages to load and if a page takes too long to load, many users will often simply leave.  Generally speaking, CSS based page layouts require much less html coding than table-based layouts.  This usually results in the pages loading more quickly.  Moreover, an externally linked CSS file, once loaded the first time, does not have to be reloaded and re-read on every page.  When using CSS for layout, browsers can cache (keep in memory) all the formatting and stylizing for your pages instead of having to read and interpret each style tag on every page. This can also result in much faster page loading times.

  2. Visual consistency across pages
    One of the strengths of using Cascading Style Sheets in a website layout is that design elements can be defined in a single place (the css file) and will automatically be applied to those elements on the website.  No longer does each individual page have to be updated to reflect the new style.  This makes for much greater consistency throughout the site.  With CSS, you do not have to re-code every element on every page (and check and double check that you didn’t miss some pages!), styling updates are automatic and site-wide.
  3. Accessibility and usability
    CSS allows for more interactive style elements, including font size and line heights, which can make web pages more usable for people with disabilities.  Web pages that use CSS layouts are also often more compatible with more browsers.  What’s more, designers can create specific css files specifically for printing, or mobile devices, as well as the standard computer screen, thereby making websites truly multimedia applications.
  4. CSS is better for SEO
    Since pages load faster with CSS Layouts, search engines can more easily crawl through the site.  Also, since there is often less coding on the pages and because CSS separates the design elements from the content, it is easier for search engines to determine what a page is about and to index it appropriately.  Finally, search engine spiders rely heavily on structural organization (heading (h1, h2, h3, etc) tags) and CSS allows designers to design those elements as needed and to place them within the page layout in a way that is most beneficial for search engine optimization.

  5. Future redesigns will be more efficient (read, less expensive!)
    Since CSS layouts separate design elements from content, once a site has been designed using Cascading Style Sheets, making changes to the design is often easier because fewer files need to be updated (often only the css files rather than every page on the website!)  This makes for faster and less expensive design changes in the future.  Set your site up using CSS now and you can have easier, more efficient and quicker updates in the future.

Watch the video related to mobile web design


Stay abreast of mobile web developments by watching our mobile web news every week. Krishna Mitra and Lucky Balaraman host this week’s show.

Help answer the question about mobile web design

I want to make a product search engine and need help to find the quote from designers for designing the site?
In short cut it is a Price comparing site but with updated options.People can find out the best offer and compare deals for their product on my site so they can save time and money.They can find anything from Flight/Holiday deals, Mobile Deals(pay as you go or Contract), Broadband,Houses/ Flat (Buy or Rent), Insurance(all kind), Loan/Mortgage deals, Credit Card, Cars, Hotels etc.Customer can not buy anything from our site.Our site will advertise offers from different companies(uploaded offers).People can see offers or deals for a specific product or service when they will search in a specific format and they can go ahead if they want to shop that product by clicking on their site address.This site will be based in Uk.if possible I need some web site designing company contact address to discuss the cost.Thanks

About Author

Caryl A. Clippinger is a web designer & developer and a founder of Charlotte’s Web Studios, L.L.C., a Virginia web design company. For more information about Charlotte’s Web Studios and additional web design tips and resources, please visit http://www.CharlottesWebStudios.com.

Tags: , , , , , , , ,

Related images CSS Layout for Websites — Why Using CSS in Web Design Layout is Better than Table-based Layout
Related Article About CSS Layout for Websites — Why Using CSS in Web Design Layout is Better than Table-based Layout

CSS Cookbook 3rd Edition Download Sampler

... web design tips and techniques. This book is about Cascading Style Sheets, or CSS ... CSS can help you elim- inate HTML table-based ... better for you. Visit your favorite websites ...

Web Standards edition W3 de

The XML Print and Page Layout Working Group ... The Cascading Style Sheets (CSS) Working Group has published a ... methods ethical designers employ to design usable websites ...

Web Standards in deutscher Sprache edition W3 de

The Cascading Style Sheets (CSS) Working Group has published the First Public Working Draft of CSS Positioned Layout Module Level 3. ... The ALA 2011 Web Design Survey

Core Design PubSub Home

The web design er will work on client projects under the ... point” — like Malcolm Gladwell’s book — ... ... the management of thousands of marketplaces and websites ...

PeachSeed Softw Alpha Listing Your Internet Shw Source

... websites easily and effortlessly through its point and click design!More than just ... Web Pages using HTML and Cascading Style Sheets. ... Web Pages using HTML and CSS ...