Tags:
create new tag
, view all tags

Question

I have a table encoded with HTML that sets the table width, plus the column widths.

When I have plenty of wording to fill a line in each column, the table goes full width. However, in my last column I have a very short-word list of wiki links. The column tightens up and the three columns do not fill out to 100%. So I have three smaller columns on top of three full-width columns in my table.

Is this a bug? Browser issue? I don't think it's my coding; I've checked that.

Thanks in advance for your help.

Environment

TWiki version: TWikiRelease04Sep2004
TWiki plugins: DefaultPlugin, EmptyPlugin, InterwikiPlugin
Server OS:  
Web server:  
Perl version:  
Client OS: XP SP1
Web Browser:  
Categories:  

-- LisaAkari - 04 Jan 2006

Answer

ALERT! If you answer a question - or have a question you asked answered by someone - please remember to edit the page and set the status to answered. The status is in a drop-down list below the edit box.

Each browser has a somewhat different behaviour on table table width. You can control that somwhat by specifying a width of 100% for the table and a width of 33% for each of the three columns (or whatever ratio you want). To control the width precisely I sometimes use a transparent 1x1 pixel gif streched to the desired width inside a table cell.

-- PeterThoeny - 04 Jan 2006

I have definitely set the width to 100% and each column to 33. I've checked my coding and it's correct. The only way I could get the table to stretch out was to add enough text to wrap to anything in the last column. I will try your pixel gif tip. That's a nice trick.

-- LisaAkari - 06 Jan 2006

I tried the pixel image and that was cool but the column widths still fluctuated. I finally changed the width to be 100 px instead of % and the width to 33 px and that fixed the problem.

-- LisaAkari - 07 Jan 2006

 
Topic revision: r4 - 2006-01-07 - LisaAkari
 
Twitter Delicious Facebook Digg Google Bookmarks E-mail LinkedIn Reddit StumbleUpon    
  • Download TWiki
TWiki logo Powered by Perl Hosted by OICcam.com Ideas, requests, problems regarding TWiki? Send feedback. Ask community in the support forum.
Copyright © 1999-2012 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.