|
Posted by dorayme on 11/16/05 06:03
> From: "Stefan Mueller" <seekware-remove-@yahoo.com>
>
> 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>
>
> ====================================
>
There would be a number of ways to do what you might want. If
you have a table at 100% and are doing what you indicate and the
table is the all important thing in your page, then <body
style="min-width:800px"> will work in some good browsers to
bring up the scrollbar. But what you want is unclear because
what do you mean by "the page gets not smaller". By putting in
width as 100% for the table, this becomes a murky idea (ie.
suppose the screen is 1600 px wide and the right text is right
at right. When the window is reduced do you really want the
scollbar to come on right away? Surely not. In other words, you
need to think thru what is wanted first). Leave the 100% out and
see what happens, combine the min-width for the body with no
100%, or with the 100%...
--
dorayme
Navigation:
[Reply to this message]
|