View Single Post
  #2 (permalink)  
Old September 24th, 2003, 07:21 AM
Imar's Avatar
Imar Imar is offline
Wrox Author
Points: 72,055, Level: 100
Points: 72,055, Level: 100 Points: 72,055, Level: 100 Points: 72,055, Level: 100
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Jun 2003
Location: Utrecht, Netherlands.
Posts: 17,086
Thanks: 80
Thanked 1,587 Times in 1,563 Posts
Default

Hi Praveen,

The problem with table widths is that the browser will see the width as a recommendation. This means that when it needs more room for content, it will just take more room.

There are a couple of ways around this. You can use CSS to force the width of the table columns. Alternatively, you can add spacer images to the first or last cell of each column to force the width. Using spacer images is considered "bad practice" and "old skool" but if you need to support older browsers as well, it's a viable solution, IMO.

Take a look at the following article:

http://www.evolt.org/article/Liquid_Tables/20/2321/

You may want to follow the 4 links / examples on this page as they show you a couple of solutions.

If that doesn't help, please post your table with content, so we can take a look at it.

Cheers,

Imar


---------------------------------------
Imar Spaanjaars
Everyone is unique, except for me.
Reply With Quote