File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes HTML, CSS and JavaScript and the fly likes table for layout? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "table for layout?" Watch "table for layout?" New topic
Author

table for layout?

Qunfeng Wang
Ranch Hand

Joined: Jan 28, 2005
Posts: 425
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.


To be or not to be. It's a question.
Freddy Wong
Ranch Hand

Joined: Sep 11, 2006
Posts: 959


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


SCJP 5.0, SCWCD 1.4, SCBCD 1.3, SCDJWS 1.4
My Blog
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 60050
    
  65

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.


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
 
 
subject: table for layout?
 
Similar Threads
images
creating 2 tables in same page
Formatting error message
How to keep same display for for different screen resolutions
cache could speed-up IE rendering?