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 Roy Schestowitz on 11/16/05 05:36

__/ [Stefan Mueller] on Wednesday 16 November 2005 02:21 \__

> Is there any possibility to set a minwidth to a table so if you reduce the
> width of the browser window the page gets not smaller but that you get a
> horizontal scroll bar?
>
> Stefan
>
> ====================================
>
> <html>
> <body>
> <table width = "100%" border = "0" align = "center">
> <tr>
> <td width = "50%">
> Text left
> </td>
>
> <td width = "50%" align = "right">
> Text left
> </td>
> </tr>
> </table>
> </body>
> </html>
>
> ====================================


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.

Hope it helps,

Roy

--
Roy S. Schestowitz | It is no longer uncommon to be uncommon
http://Schestowitz.com | SuSE Linux | PGP-Key: 0x74572E8E
3:30am up 12 days 23:28, 4 users, load average: 1.30, 0.82, 0.46
http://iuron.com - next generation of search paradigms

 

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

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