Click here to Skip to main content
15,924,452 members
Home / Discussions / Web Development
   

Web Development

 
GeneralRe: Tables or DIVs? Pin
Blake Coverett29-Sep-03 18:41
Blake Coverett29-Sep-03 18:41 
GeneralRe: Tables or DIVs? Pin
theJazzyBrain29-Sep-03 21:38
theJazzyBrain29-Sep-03 21:38 
GeneralRe: Tables or DIVs? Pin
antbates1-Oct-03 4:14
antbates1-Oct-03 4:14 
GeneralRe: Tables or DIVs? Pin
Rocky Moore29-Sep-03 23:00
Rocky Moore29-Sep-03 23:00 
GeneralRe: Tables or DIVs? Pin
theJazzyBrain29-Sep-03 23:38
theJazzyBrain29-Sep-03 23:38 
GeneralRe: Tables or DIVs? Pin
Rocky Moore30-Sep-03 3:52
Rocky Moore30-Sep-03 3:52 
GeneralRe: Tables or DIVs? Pin
theJazzyBrain30-Sep-03 4:48
theJazzyBrain30-Sep-03 4:48 
GeneralRe: Tables or DIVs? Pin
Rocky Moore30-Sep-03 7:22
Rocky Moore30-Sep-03 7:22 
theJazzyBrain wrote:
I agree with the empty cells, but what is the problem with borders and nesting? I have been nesting tables and I am happy with the result.

Nested cells have the problem of speed of course. A browser has to make multiple passes if your tables to not specific the exact height and width of all columns and rows. If you have a table nested, it repeats those passes for each level of nesting. I do not know if this happens with DIV's though, and that was kind of the main focus of the question I started with.

There is also formatting problems with nested tables on older browsers. I do not remember exactly what it was, but know I was bit with it many times. Had to do with background colors or images and the background of the page, if I remember correctly.

Borders do not display the same on all browsers. While one may display them as a 3d format others may display them as simple line. The only way around in older browsers is to not use the Table's border but a Style border for the table.

theJazzyBrain wrote:
I am sorry but I will have to disagree on this. Many books or tutorials that I have read refer to tables as a way to provide layout to your pages. And if they dont they surely not refer to DIVs as a way to provide layout...

If you are reading books instructing you to use tables to layout a page, then they are the wrong books. Tables are meant for tabular type data. Tables is more of grouping the data rather than its presentation. Many of us never noticed that (me for one, abused tables for years - now trying to clean up my tracks Blush | :O Smile | :) ) and saw it was handy to arrange content on a page which led us down a path that no longer has to be traveled since we have CSS.

Yes, I can quote from the W3C also:

Tables should not be used purely as a means to layout document content as this may present problems when rendering to non-visual media. Additionally, when used with graphics, these tables may force users to scroll horizontally to view a table designed on a system with a larger display. To minimize these problems, authors should use style sheets to control layout rather than tables

It is not saying that you use the tables to layout your "page" but the tabular data. Your quote says ".. authors to arrange data .." not a page. If you have tabular type data, then a table was designed for that.

theJazzyBrain wrote:
So... I am a bit confused...

Yes, it would seem so. The DIV tag is without formatting of its own other than being a block type while span is a generic of in-line types. It is the Syle (or Style Sheet Class) that gives it formatting. This allows for greater control on the formatting than to have a tag that restricts your formatting to a specific type. This helps keep your "presentation" code seperate and allows you multiple ways to view the same data without changing its structure. For an example, it might be formatted for a mobile output with one CSS and formatted for your montior with another. Page doesn't change, just the presentation part that is housed in the CSS.

As an extreme example of what you can do with simple DIVs, have you ever seen ZenGarden?

http://www.csszengarden.com/[^]

Quite a site! Just browse the different designs under "Select Desgin". It is hard to imagine the design does not change by the CSS does and it can change so much.

theJazzyBrain wrote:
The bottom line is that I will not stop using TABLES, at least in the near future coz I am happy with them...

No one said you had to, if you want to design your sites formatting everything with tables that your prerogative. It is just not the recommended way to layout a site.

The future is still promising for tables, however it is focused more to organizing tabular data along with summaries of the collection contains in tables.

Rocky Moore <><
GeneralNeed DRM Solution Pin
Bud Mcfadin28-Sep-03 23:02
Bud Mcfadin28-Sep-03 23:02 
GeneralRe: Need DRM Solution Pin
Blake Coverett28-Sep-03 23:23
Blake Coverett28-Sep-03 23:23 
GeneralRe: Need DRM Solution Pin
Lionel Taylor8-Oct-03 6:01
Lionel Taylor8-Oct-03 6:01 
GeneralRe: Need DRM Solution Pin
Blake Coverett8-Oct-03 15:22
Blake Coverett8-Oct-03 15:22 
GeneralRe: Need DRM Solution Pin
Nathan Ridley28-Sep-03 23:26
Nathan Ridley28-Sep-03 23:26 
GeneralData transfer among web applications Pin
TPN28-Sep-03 19:17
TPN28-Sep-03 19:17 
GeneralRe: Data transfer among web applications Pin
theJazzyBrain29-Sep-03 1:28
theJazzyBrain29-Sep-03 1:28 
GeneralRe: Data transfer among web applications Pin
TPN29-Sep-03 16:53
TPN29-Sep-03 16:53 
Questionwould any of you be interested in this? Pin
Nathan Ridley28-Sep-03 3:01
Nathan Ridley28-Sep-03 3:01 
AnswerRe: would any of you be interested in this? Pin
Blake Coverett28-Sep-03 23:19
Blake Coverett28-Sep-03 23:19 
AnswerRe: would any of you be interested in this? Pin
Rocky Moore29-Sep-03 23:10
Rocky Moore29-Sep-03 23:10 
AnswerRe: would any of you be interested in this? Pin
Bullschmidt30-Sep-03 16:52
Bullschmidt30-Sep-03 16:52 
GeneralRe: would any of you be interested in this? Pin
chr36812-Oct-03 9:50
chr36812-Oct-03 9:50 
GeneralFTP from secured PC. Pin
Sarvesvara (BVKS) Dasa27-Sep-03 22:02
Sarvesvara (BVKS) Dasa27-Sep-03 22:02 
GeneralRe: FTP from secured PC. Pin
Ian Darling27-Sep-03 22:14
Ian Darling27-Sep-03 22:14 
GeneralRe: FTP from secured PC. Pin
Sarvesvara (BVKS) Dasa27-Sep-03 22:24
Sarvesvara (BVKS) Dasa27-Sep-03 22:24 
GeneralRe: FTP from secured PC. Pin
Ian Darling27-Sep-03 22:42
Ian Darling27-Sep-03 22:42 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.