Using CSS Instead of Tables
The closest article testament pageant you why to stay gone from tables when designing a site.
Most mesh developers and designers will acquaint you to stay outside from tables when developing lattice sites, of trail there are some exceptions, prize forms, and data. Instead they will call upon you to employ CSS. When designing your lacework stop you should avail CSS, along with the HTML tag. Now, you may be asking, why? The reasons are below!
1. Tabular Data. Not layouts.
Tables are for Tabular Data. They simply are not for designing a page. Here is a deluxe phase at about.com that explains Tabular Data.
2. Nested Tables
Nested tables is a habitual means to bring about layouts with tables. With nested tables, one, or more, tables are placed inside everyone other. There is a dilemma when designing a stage this way, it takes the browser longer to render your page. With CSS there is hang-up less code, and your decree is cleaner, therefor it is easier on the browser.
3. Changing fonts, colors, and layouts.
Lets do you had a end with 100 pages, with tables, and you wanted to quarters the header of every period to woebegone instead of red. With CSS you could activity into the CSS file, included on every one of those 100 pages, and spending money the font-color to blue. It would then renovate all of your pages with the colour blue. With tables you would obtain to unbarred every one of those pages and alternate the color.
4. Invalid XHTML
When using tables for your net chapter layout, you are writing invalid XHTML. You should single end tables when you are working with Tabular Data, as I stated above.
5. Smaller HTML files
No one wants a vast HTML file, entire of messy code, right? Well, this is dependable another cause to advantage CSS. Owing to you can bell your CSS style episode from foreign file, it doesn't still committal to be in your HTML data to work, manufacture it much smaller.
Published: July 7, 2008