css versus tables and cells

February 2, 2007 9:48pm CST
why is it that everytime i read a web layout/design book says that css is better in creating good looking web pages? is it always required to use css?
2 responses
@saiine (15)
• United States
23 Mar 07
acc3nture, CSS is a method of styling elements used for creating webpages. If you're asking should you use it and practice it, absolutely. Good looking is a objective term, Intelligent is a much better term for proper CSS usage. Basically, CSS allows you to create a single class style and apply it to multiple objects. Take the following for example: You have multiple pages with a heading on them, and perhaps a table layout, maybe you even have some form buttons spread across multiple pages. You are tasked with changing the color of the table border, or perhaps the size of the font on the heading. Is it smarter to do this once and have it apply everywhere? or is it smarter to find every instance of these elements and change them manually? :) CSS to me, is a much more intelligent way to design and maintain the user interface layer of a website. No, it's not required to make a webpage function, but it is certainly a more robust and scaleable way of writing one. Hope this helps!
• United States
2 Apr 07
I definitely agree. CSS isn't just for the physical layout/alignment of objects. It handles pretty much everything, from colors (of anything), background images, and text formatting, to some events, such as hover, visited, and active (for links), and even supports the use of variables to define values for colors and things like that.
@shyam221 (519)
• India
31 Mar 07
yaah it is true if you use css than the table structure then you can reduce loading time of the your web page i have practical experience with this.if you go to site of yahoo then you might notice the loading time of the site it is very less they have made every thing through the css they are having more than thousand line of css for the home page.through css you can make really very good site with less loading site and having centeralised control on the styling of your site.