This week's book giveaway is in the OCAJP 8 forum.
We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori on-line!
See this thread for details.
The moose likes HTML, CSS and JavaScript and the fly likes Formatting of tables Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of OCA Java SE 8 Programmer I Study Guide this week in the OCAJP 8 forum!
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "Formatting of tables" Watch "Formatting of tables" New topic

Formatting of tables

Y Cheong

Joined: Jan 19, 2003
Posts: 9
Please can anyone help with the formatting of tables. I use tables both for the classic use of storing data in a table format and also for page layout.
I have been using spacers (transparent gifs) to set the width and height of my rows and columns. I was wondering whether alternative ways such as using the width and height attributes of <tr> and <td> using a specified value are bad and not to be used.
Is it also not correct practice to use percentages to specify the widths?
Please help
christoph weingarten
Ranch Hand

Joined: Oct 10, 2002
Posts: 39
you can specify a cells width/height by using this attributes for table td/th-tags. you can use absolute and relative values here. it's syntactical correct html!
but if you have to layout a html-page it's probably better to use blind gifs.
some browsers will crush your table, even though you added width- or height-paramters within your td-tag.
I agree. Here's the link:
subject: Formatting of tables
It's not a secret anymore!