Why do you feel the need to use positioning with the tables? Are you trying to do something special with them? I don't understand why you are even asking the question. Under normal circumstances, you don't need to specify positioning for any HTML element, let alone tables.

I have to admit that my projects use a lot of tables (and nested tables) for laying out pages but I hear people talk about using CSS and absolute and relative positioning instead of tables. Is this what you are asking about?

Under normal circumstances, you don't need to specify positioning for any HTML element, let alone tables

Bear, would you clarify or expound upon this statement? I agree with you regarding tables but I struggle with various browser positioning issues every day. If there is a way to avoid the struggle, I'd like to know what it is. My experience is that some positioning is required especially if one wants to be cross-browser compatible.

Bear, would you clarify or expound upon this statement? I agree with you regarding tables but I struggle with various browser positioning issues every day. If there is a way to avoid the struggle, I'd like to know what it is. My experience is that some positioning is required especially if one wants to be cross-browser compatible.

You'll need to elaborate your issues. Between "normal" browser layout and CSS properties like float, I rarely find myself using the CSS position property except for things that need special positioning (like layered dialogs, and fixed footers, and the such). [ March 05, 2008: Message edited by: Bear Bibeault ]

Originally posted by sudha swami: Can you please suggest some links/tutorials where tables attributes are using CSS.

The <table> element can be assigned CSS styles in the same way as any other HTML element. So if you've seen CSS tutorials that use, say, <div> elements and apply styles to them, just mentally replace "div" by "table" and that's just about all you need to know.

Jay Damon
Ranch Hand

Joined: Jul 31, 2001
Posts: 282

posted Mar 05, 2008 15:30:00

0

Bear,

I was intrigued by your use of the word any. Also, I broadly interpreted positioning to include top, left, etc. not just the position attribute. Finally, my pages do include fixed headers, footers and status areas.

That said, I apparently have more problems with "normal" browser layout than you. Simple pages are never a problem but it seems like anytime I attempt a page that is the least bit complicated, it is never rendered the same in all browsers and I am forever tweaking it to get it to look right in browsers we support.

It may be overkill but I finally sat down and wrote a JavaScript function to resize pages to address the inconsistencies among browsers then hooked it into the onload and onresize events. I would prefer not to have to do this but it has solved a lot of my problems.