You are here: Re: How to set a minwidth to a table « HTML « IT news, forums, messages
Re: How to set a minwidth to a table

Posted by Stefan Mueller on 11/17/05 10:37

> I think that the answer would be no -- there is no reserved mechanism for
> doing so. I suggest constructing a transparent PNG file which is, let us
> say, 800 pixels wide and 1 pixel in height. Put it somewhere in the table
> and assuming you have no columns (cells), you should be fine. In fact,
> putting such an element /outside/ the table would do the trick too, re-
> gardless of the spread of table cells.


Yea, I've also thought about something like adding a blank image with a
fixed width (800px) but the problem is that even if I set its height to zero
it needs some vertical space:

<html>
<body>
<table width = "100%" border = "0">
<tr>
<td>
<img src = "size-1x1.gif" width = "800px" height = "0" border =
"0">
<hr>
</td>
</tr>
</table>
</body>
</html>

Stefan

PS: According to other posts min-width (<table width = "100%" style =
"min-width:800px" border = "0">) would be a nice solution but unfortunately
it's not working with the Internet Explorer.

 

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

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