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
badg0003
Posts: 5
Registered: ‎12-10-2009
My Device: Not Specified

Tips for formatting 3 to 4 column tables

Looking for good tips on how to properly format (CSS) tables that have three to four columns. I've tried a bunch of things and have found giving the table the following properties seems to work well, but wondering if there is a better way?

 

table {

border-collapse: collapse;

table-layout: fixed;

width: 100%;

}

 

(Each cell in the table is then given a fixed (%) width).

Developer
Aepfel
Posts: 22
Registered: ‎11-18-2009
My Device: Not Specified

Re: Tips for formatting 3 to 4 column tables

[ Edited ]

I figured out that you might run better by using ordinary html table formating options.

Additionaly I use some CSS.

 

This gives totaly clean tables:

 

<table width="100%" align="center" cellpadding=0px; cellspacing=0px; border=0px id="menu_table">
<td width="10%" valign="top" align="left">

<....>

 

#menu_table {
    border: 0;
    border-collapse: collapse;
}