You are here: Cell width error when containing variable width content « HTML « IT news, forums, messages
Cell width error when containing variable width content

Posted by mj.redfox.mj on 01/26/06 17:37

I have a table of width 100%, with one row and two columns.

The first column is a fixed 150 pixel width and contains text.

The second column has no width set, so that it just fills the rest of
the table width.

It contains a select box, which has a style attribute as follows:
style="width: 60%"

However, as it stands, this results in the second cell not displaying
at all, as (I'm assuming) the width of the select box is being treated
as 60% of 0, rather than 60% of the remainder of the table.

Interestingly, if I add a single character after the select box (i.e.
something with a finite width), the cell displays as expected.

Does anyone know if there's a better practice way around this, rather
than adding unneccessary characters every time I want to do this?

Thank you if you can help at all.

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация