Archive for March 28, 2007

Table or Divs?

With more and more rich user interface based screens there is lot of HTML + CSS that has to work together to make it really rich. There can be more than one HTML element that can produce similar result but the way in which they render might be different. The best example is the TABLE and DIV element. While both can achieve putting the data in a matrix format there are differences in terms of rendering, advantages and disadvantage of using either of them. If you are a presentation layer developer you might want to know the difference in using these elements, when to go for a TABLE and when to go for a DIV. A TABLE alters its size dynamically as the data gets filled up. Here is an example site that extensively uses TABLE. If you see carefully you can see how the table size varies as the page gets loaded. This could be annoying if there is too much dynamic data represented in table and there is a flicker effect on the screen when the page gets loaded.  For some insights on the differences refer this article “Table Vs Divs“.

Blink this Table or Divs? at blinklist.com    Bookmark Table or Divs? at blogmarks    Bookmark Table or Divs? at del.icio.us    Digg Table or Divs? at Digg.com    Fark Table or Divs? at Fark.com    Bookmark Table or Divs? at Furl.net    Bookmark Table or Divs? at NewsVine    Bookmark Table or Divs? at reddit.com    Bookmark Table or Divs? at Simpy.com    Bookmark Table or Divs? at Spurl.net    Bookmark Table or Divs? with wists    Bookmark Table or Divs? at YahooMyWeb

Comments      Cosmos


Creative Commons License  This work is licensed under a Creative Commons Attribution-ShareAlike 2.5 License.