• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

table for layout?

 
Qunfeng Wang
Ranch Hand
Posts: 434
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I'm reading the Head First HTML&CSS book. It's said that table was used a lot before CSS came out. Now we have CSS, so we should not use table to do this job any more. But look at the JavaRanch home page, it uses table and it works pretty well.

1. Do you use table for layout now?
2. If I replace table with CSS, what might it look like?

Thanks.
 
Freddy Wong
Ranch Hand
Posts: 959
Eclipse IDE Java Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

1. Do you use table for layout now?

No, I always use CSS whenever possible. Maintenance will be easier if there's a need to change the look and feel.

2. If I replace table with CSS, what might it look like?

It will look just exactly the same depending on how you create the CSS
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 64620
86
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
0. JavaRanch's pages were first written a very long time ago.
1. Rarely. Only when IE's lame CSS engine won't let me do it the right way.
2. However I want.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic