Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Formatting of tables

 
Y Cheong
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
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
Y
 
christoph weingarten
Ranch Hand
Posts: 39
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi,
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.
christoph
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic