[lnkForumImage]
TotalShareware - Download Free Software

Confronta i prezzi di migliaia di prodotti.
Asp Forum
 Home | Login | Register | Search 


 

Forums >

microsoft.public.dotnet.framework.aspnet.mobile

table padding on mobile device

Cortney

6/19/2002 3:12:00 PM

I am using ASP.NET (without the MMIT) to display my
content on the Pocket PC 2002 (for prettier display for
sales people).

I have placed my controls in a table to control the
alignment - left align labels, right align controls. When
the controls are in the table, extra padding is applied,
creating big gaps between the table rows. (Even when table
spacing and padding = 0). This does not happen when only
text is in the table (labels, links, etc.) And it does not
happen when you take the controls out of the table.

Does anyone know a work around to get rid of this padding?
1 Answer

Craig Deelsnyder

6/19/2002 6:19:00 PM

0

This is the behavior of Pocket IE concerning HTML, it's like it adds a <BR>
after every input type of field in a TABLE. We found no workaround, and
have redesigned our pages to fit this scheme, as it was important to use a
table to line things up.

It is true that if you do not have the input field in a TABLE element, it
will not get the extra gap after it. There were a few places we could use
that to our advantage, by leaving the control (a listbox, for example)
outside of a TABLE.

One other possibility suggested elsewhere, although it doesn't really solve
the problem, is to set either cellpadding or cellspacing (can't remember
which) to a negative number (-3). It does work, but doesn't really solve
the layout problem, and causes its own problems....



"Cortney" <CWatkins@asapauto.com> wrote in message
news:e66401c21792$f262a3d0$a4e62ecf@tkmsftngxa06...
> I am using ASP.NET (without the MMIT) to display my
> content on the Pocket PC 2002 (for prettier display for
> sales people).
>
> I have placed my controls in a table to control the
> alignment - left align labels, right align controls. When
> the controls are in the table, extra padding is applied,
> creating big gaps between the table rows. (Even when table
> spacing and padding = 0). This does not happen when only
> text is in the table (labels, links, etc.) And it does not
> happen when you take the controls out of the table.
>
> Does anyone know a work around to get rid of this padding?