Using CCS to Eliminate Tables

CSS or Cascading Style Sheets has opened uppurpose have been eliminated. For eliminating tables
tremendous possibilities for improving web sitefirst step is to decide which tables or more
designs, web page layouts and adding new features.specifically which cells have to be removed. For
The HTML code can be made shorter, cleaner andapplying CSS each cell of a table can be considered
simpler by CSS resulting in faster loading of webas a "box". These boxes are given separate identities
pages, and making them more accessible to searchand description of each "box" goes into CSS code.
engines. Here I am narrating my experience with onlyThe "boxes" can be given names such as box1, box2
one part of CSS - using it to eliminate tables.etc. The description of the "box" can include size, its
If you look at a traditionally designed web page, youlocation on web page, background color and image if
are likely to find number of tables in the layout.any, font details, padding, border details etc. The
Tables were earlier used only for displayinglocation of the "box" can be made "fixed" on the
information in a tabular form. But web site designersweb page, or it can be floating in which case location
soon started using tables for other applications suchcan be defined with respect to another "box".
as showing images, graphics and other decorations.If the location and dimensions of the boxes are
My own web pages were earlier checkerboards ofproperly worked out, they neatly fit into the web
tables. Each web page was almost fully covered withpage giving it a clean look. Since the code associated
tables and many tables were nested inside otherwith table designs are done away with, the content
tables. As I tried to add more features the designof the page attains more prominence in the code.
became more and more complicated resulting inThis makes it easier for search engine spiders to
longer loading times. It also took lot of time tolocate the actual content of the page.
"adjust" the tables on the page to make itIf you have several web pages with similar design,
acceptable.the CSS code with these and other details can be
It was not an easy task to redesign all the pagesput in an external file. This will further shorten the
using CSS. But once I started, the improvementscode for each page. With CSS lot many
were more than I had bargained for. The designimprovements can be done in web page design and
became simpler, the appearance improved and loadinglayout. CSS can also be used for search engine
time came down considerably. The code looked realoptimization of the page.
clean. Most of "td" and "tr" tags were gone.My experience with CSS has been great and I
My purpose of this exercise was not really to changewonder why it is not used more often. My advice -
the appearance but to make the design simpler. Nowconvert to CSS based design.
the tables which were earlier used only for design