Wrox Programmer Forums
Go Back   Wrox Programmer Forums > Web Programming > CSS > CSS Cascading Style Sheets
| Search | Today's Posts | Mark Forums Read
CSS Cascading Style Sheets All issues relating to Cascading Style Sheets (CSS).
Welcome to the p2p.wrox.com Forums.

You are currently viewing the CSS Cascading Style Sheets section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old July 7th, 2006, 08:06 AM
Friend of Wrox
 
Join Date: Jun 2003
Location: , , .
Posts: 347
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to Adam H-W
Default What's better - Web Pages built with Tables or CSS

I'm wondering what's better - building web pages using tables or Div tags.

I've been weaned on using tables but more recently have been looking at building web pages with Div tags which people tell me is the way to go.

However, when I do build web pages using Div tags/CSS I always seem to run into cross browser compatibility problems - i.e images bursting out over the edges of web pages etc. This doesn't happen when I build them using tables. Can anyone enlighten me on why one should use CSS layout over table layout?

 
Old July 7th, 2006, 10:07 AM
Friend of Wrox
 
Join Date: May 2006
Location: San Diego, CA, USA.
Posts: 643
Thanks: 0
Thanked 0 Times in 0 Posts
Default

There are cross browser compatibility problems with both tables and div layouts.
I have used both, and in a lot of cases the div works better than tables for a lot of things and it is worth learning, along with all the other CSS techniques. However, using tables for what tables are meant for (that is... tabular data) is generally a good thing.
However, I came up through the days when the table was about the only way complex pages could be put together, and I have a great deal of XSL I've put together over time for generating HTML tables so I still often use that.

I consulted on a project where it was mandated that tables would not be used, and where there were a number of browsers that were required for compatibility - and we ended up using just about every hack we could find (from sources such as the CSS Hacks and Filters book by Joseph W. Lowery as well as dozens of other books and web sites). They spent a lot of money forcing the CSS Div mandate over using tables where appropriate.


Woody Z http://www.learntoprogramnow.com




Similar Threads
Thread Thread Starter Forum Replies Last Post
Master Pages, Content Pages and CSS carliviris Visual Studio 2005 0 January 8th, 2008 05:56 PM
how to add css to master pages? shaileshcdac Classic ASP Basics 0 April 5th, 2007 04:01 AM
Applying CSS to tables andyhague CSS Cascading Style Sheets 4 April 5th, 2006 05:30 AM
Web pages constructing: I-mode(mobile) pages karib Dreamweaver (all versions) 3 June 6th, 2004 09:48 AM
CSS Inheritance and tables pagates HTML Code Clinic 5 September 30th, 2003 01:50 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.