homepage Welcome to WebmasterWorld Guest from
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Become a Pro Member

Visit PubCon.com
Home / Forums Index / Code, Content, and Presentation / CSS
Forum Library, Charter, Moderators: not2easy

CSS Forum

do I need to stack <div>'s like tables?
stacked tables render quicker, what about divs?

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

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




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

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))



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

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. ;)


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

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?


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

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


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

Global Options:
 top home search open messages active posts  

Home / Forums Index / Code, Content, and Presentation / CSS
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved