Welcome to WebmasterWorld Guest from 54.227.5.198

Forum Moderators: not2easy

Message Too Old, No Replies

do I need to stack <div>'s like tables?

stacked tables render quicker, what about divs?

     

Craig_F

11:04 pm on Jan 16, 2003 (gmt 0)

10+ Year Member



anyone know? seems like stacking would be helpful with divs too, but I want to be sure.

thanks.

SuzyUK

1:59 am on Jan 17, 2003 (gmt 0)

WebmasterWorld Senior Member suzyuk is a WebmasterWorld Top Contributor of All Time 10+ Year Member



Divs are not tables! (think foundations rather than houses)

there is no need to think about them in the same vein..why would a "stack" of divs take longer to render than a table? The div in the middle will render then the one outside that will render then the one outside that will render then the one outside will render....etc

have you anything on your page yet?

a table is entirely different not one bit of that will render until the whole outer thing has been built! (never mind the nests! (or walls))

Suzy

pageoneresults

3:15 am on Jan 17, 2003 (gmt 0)

WebmasterWorld Senior Member pageoneresults is a WebmasterWorld Top Contributor of All Time 10+ Year Member



It's amazing what one can do with just one div and a plethora of css styling. I've been finding myself doing this more frequently where main content is concerned.

Much cleaner code when working with <div>s and css. Alot easier to manage too!

P.S. Instead of stacking <div>s, you organize them. ;)

Craig_F

1:02 pm on Jan 17, 2003 (gmt 0)

10+ Year Member



ok, so here's what I probably should have asked -- I'm using a good bit of CSS, but still have many stacked tables. Instead of setting the alignment to center within each table I was going to wrap all of them in one <div align="center">. Would that div wrap defeat the purpose of the stacked tables?

I'm very interested to learn more on how to use <div>, but I'm concerned about browser compatibility. Anyone know what I need to worry about there?

SuzyUK

1:11 pm on Jan 17, 2003 (gmt 0)

WebmasterWorld Senior Member suzyuk is a WebmasterWorld Top Contributor of All Time 10+ Year Member



Ahh...Craig_F..there are actually issues with using CSS to center tables

This Link explains the solution [catcode.com]

then you would still need to give each of you tables, within the stack, the centered class

Note: what you describe will work in IE but not others so be sure and view the page link in another browser so you see the problem

Suzy

<added> forget to say wrapping all the tables in one div shouldn't cause any problems if they're all to be centered</added>

 

Featured Threads

Hot Threads This Week

Hot Threads This Month