Welcome!

Welcome to the official BlackBerry Support Community Forums.

This is your resource to discuss support topics with your peers, and learn from each other.

inside custom component

Web and WebWorks Development

Reply
New Developer
brucewc4
Posts: 2
Registered: ‎06-22-2009
My Device: Not Specified

Table column widths not working right

Blackberry 8310 Curve is not formatting the table properly. Version is v4.5.0.110.  Using the default internet browser.
This is a simple 2 column table with a left aligned and a right aligned column.  I set the table width to 100% -
the table border displays the full screen width, but the right column text starts immediatey after the left column
instead of right aligning to the right edge of the table.
For instance, it should look like this - going to the right edge of the screen.
|--------------------------------------------------------------|
06/24/2009                             114.23 USD
06/25/2009                              47.34 USD

 

 

Instead, I get this:
06/24/2009 114.23 USD
06/25/2009  47.34 USD

 

This is the stripped down html:

<table class="outlined" cellpadding="2" cellspacing="0" width="100%">
 <tr>
  <td>06/24/2009</td>
  <td align="right">114.23 USD</td>
 </tr>
 <tr>
  <td>06/25/2009</td>
  <td align="right">47.34 USD</td>
 </tr>
</table>

I have tried align, text-align, etc. I don't want to specify <td width="xxx%"> - I want the table to size around the content.  Any help?
thanks
bruce

New Developer
brucewc4
Posts: 2
Registered: ‎06-22-2009
My Device: Not Specified

Re: Table column widths not working right

Additional information - I tried some of the BlackBerry 8310 simulators - this displays fine using version 4.2.2.154, but doesn't work using 4.5.0.37.  On Device Anywhere, a device with 4.2.2.170 works, device with 4.5.0.110 does not work.

New Developer
Austrian_Des
Posts: 1
Registered: ‎07-07-2009
My Device: Not Specified

Re: Table column widths not working right

Hi,

 

I too have been getting some odd formatting issues with regard to html tables in the email viewer.

 

If I use <td size='100'>...</td> for all cells in a 2 column x 2 row table then the email viewer (browser) shrinks the cell to fit the content rather than wrapping the text ...

 

Any thoughts would be appreciated ...

 

Des

 

v4.6.0.126

Blackberry 9000

New Contributor
aamalraj
Posts: 7
Registered: ‎07-11-2011
My Device: 4.6

Re: Table column widths not working right

Were you able to fix this issue ??