Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Table sizing

0 views
Skip to first unread message

tshad

unread,
Nov 19, 2009, 2:24:18 PM11/19/09
to
I have a table in my panel that is sized to the size of the window with 3
columns (40%, 30% and 30%).

As the window is resized the columns resized, which is what I want.

But I want to have a minimum size the Table can be shrunk to as all the
controls get out of what if I get less that about 800px.

Is there there a way to tell the table to resize when the window is greater
than 800px and stop when the window gets less than 800px? I realize that
the table will then run off the end of the window and would have to scroll
left and right but that is fine.

At the moment the table is essentially set up as:

<asp:Panel ID="mFilterPanel" runat="server">
<table cellpadding="0" cellspacing="0" border="0" width="100%">
<tr>
<td class="ColumnWidth40" >
</td>
<td class="ColumnWidth30">
</td>
<td class="ColumnWidth30">
</td>
</tr>
</table>
</asp:Panel>

Thanks,

Tom


Rasika WIJAYARATNE

unread,
Nov 19, 2009, 9:36:40 PM11/19/09
to
Hello,

You can achieve this with a alpha transparent 1 pixel GIF or PNG image
(the "<br />" at the end may or may not be needed).

<asp:Panel ID="mFilterPanel" runat="server">

<img src="~/images/dot.gif" style="width: 800px; height: 1px;"
runat="server" /><br />

<table cellpadding="0" cellspacing="0" border="0" width="100%">
<tr>
<td class="ColumnWidth40" >
</td>
<td class="ColumnWidth30">
</td>
<td class="ColumnWidth30">
</td>
</tr>
</table>
</asp:Panel>

Rasika
00157675214011

tshad

unread,
Nov 20, 2009, 12:16:08 AM11/20/09
to
Rasika WIJAYARATNE wrote:
> Hello,
>
> You can achieve this with a alpha transparent 1 pixel GIF or PNG image
> (the "<br />" at the end may or may not be needed).
>
What is that and how do you make that? Can you do it with Paint Shop Pro?

How does an image before and outside of the table cause this effect?

Thanks,

tom

tshad

unread,
Nov 20, 2009, 2:22:27 AM11/20/09
to
I tried it out and it worked really well.

I couldn't find out how to do it with a Gif as the alpha transparency was
not an option in Paint Shop Pro 9.0, but it did have it in PNG.

Just not sure why having the transparent Gif at 800px affected the table
below it.

Thanks,

Tom

"tshad" <t...@dslextreme.com> wrote in message
news:OA8nSCaa...@TK2MSFTNGP06.phx.gbl...

Mark Rae [MVP]

unread,
Nov 20, 2009, 6:46:12 AM11/20/09
to
"tshad" <t...@dslextreme.com> wrote in message
news:O4gq3Iba...@TK2MSFTNGP02.phx.gbl...

> Just not sure why having the transparent Gif at 800px affected the table
> below it.

Because an image, unlike text, can't wrap and a table can't shrink smaller
than its graphic content...

--
Mark Rae
ASP.NET MVP
http://www.markrae.net

tshad

unread,
Nov 20, 2009, 10:44:32 AM11/20/09
to

"Mark Rae [MVP]" <ma...@markNOSPAMrae.net> wrote in message
news:exaXRcda...@TK2MSFTNGP02.phx.gbl...

> "tshad" <t...@dslextreme.com> wrote in message
> news:O4gq3Iba...@TK2MSFTNGP02.phx.gbl...
>
>> Just not sure why having the transparent Gif at 800px affected the table
>> below it.
>
> Because an image, unlike text, can't wrap and a table can't shrink smaller
> than its graphic content...

And so the graphic keeps the Panel 800px wide with the Table filling 100% of
the panel?

That was what was confusing.

Thanks,

Tom

Mark Rae [MVP]

unread,
Nov 20, 2009, 10:53:59 AM11/20/09
to
"tshad" <t...@dslextreme.com> wrote in message
news:eILubhfa...@TK2MSFTNGP04.phx.gbl...

>>> Just not sure why having the transparent Gif at 800px affected the table
>>> below it.
>>
>> Because an image, unlike text, can't wrap and a table can't shrink
>> smaller than its graphic content...
>
> And so the graphic keeps the Panel 800px wide with the Table filling 100%
> of the panel?

Not quite - it means that the panel (and, therefore, the table inside it)
can grow wider than 800px, but can't shrink narrower than 800px...

tshad

unread,
Nov 20, 2009, 12:18:43 PM11/20/09
to

"Mark Rae [MVP]" <ma...@markNOSPAMrae.net> wrote in message
news:OW4yumfa...@TK2MSFTNGP04.phx.gbl...
That was what I meant.

But why does it have to be alpha transparent Gif or PNG?

Thanks,

Tom

Miro

unread,
Nov 20, 2009, 2:27:43 PM11/20/09
to
it is better to have it transparent because ...lets say you make it white

and tomorrow you change your website to have a black background.
You will see it.

Making the "White" transparent means no matter what you do, it will never
show on the users screen.

Miro

"tshad" <to...@pdsa.com> wrote in message
news:u4bJEWga...@TK2MSFTNGP02.phx.gbl...

tshad

unread,
Nov 20, 2009, 8:23:23 PM11/20/09
to

"Miro" <mi...@beero.com> wrote in message
news:evlQKeh...@TK2MSFTNGP06.phx.gbl...

> it is better to have it transparent because ...lets say you make it white
>
> and tomorrow you change your website to have a black background.
> You will see it.
>
> Making the "White" transparent means no matter what you do, it will never
> show on the users screen.
>
But what is the difference between Transparent and Alpha Transparent?

Thanks,

Tom

Registered User

unread,
Nov 21, 2009, 8:59:30 AM11/21/09
to
Hmm wheres that usenet post I was composing. Posted by accident? My
apologies.

The html table has a min-width property which can be set to 800px.
<table style="min-width:800px;" >

regards
A.G.

0 new messages