[Dojo-interest] FilteringTable - CSS Problem.
Tom Trenka
dojo-interest at dept-z.com
Sat Jan 27 15:59:43 MST 2007
Try:
#MonthlyResultsTable tbody tr td.Loss{
color: red;
}
...and make sure you have the latest version of the code. 0.4.0 was wiping
extra information out of cells when using the HTML form of the table.
Pretty sure the fix for that went out with 0.4.1.
trt
Jason Evans-3 wrote:
>
>
> Hi again.
>
> I'm trying to style a filteringtable:
>
> <table dojoType="filteringTable" id="MonthlyResultsTable"
> multiple="true" alternateRows="false" maxSortable="0"
> cellpadding="0" cellspacing="0" border="0">
> <thead>
>
> <tr>
> <th field="Item" dataType="String"
> valign="top"></th>
> <th field="Jan" dataType="Currency" valign="top"
> align="center">Jan 2006</th>
> <th field="Feb" dataType="Currency" valign="top"
> align="center">Feb 2006</th>
> <th field="Mar" dataType="Currency" valign="top"
> align="center">Mar 2006</th>
> <th field="Apr" dataType="Currency" valign="top"
> align="center">Apr 2006</th>
> <th field="May" dataType="Currency" valign="top"
> align="center">May 2006</th>
> <th field="Jun" dataType="Currency" valign="top"
> align="center">Jun 2006</th>
> <th field="Jul" dataType="Currency" valign="top"
> align="center">Jul 2006</th>
> <th field="Aug" dataType="Currency" valign="top"
> align="center">Aug 2006</th>
> <th field="Sep" dataType="Currency" valign="top"
> align="center">Sep 2006</th>
> <th field="Oct" dataType="Currency" valign="top"
> align="center">Oct 2006</th>
> <th field="Nov" dataType="Currency" valign="top"
> align="center">Nov 2006</th>
> <th field="Dec" dataType="Currency" valign="top"
> align="center">Dec 2006</th>
> </tr>
> </thead>
>
> <tbody>
> <tr value="1">
> <td>Target</td>
> <td>$2,500.00</td>
> <td>$0.00</td>
> <td>$2,500.00</td>
> <td>$2,500.00</td>
> <td>$2,500.00</td>
> <td>$2,500.00</td>
> <td>$2,500.00</td>
> <td>$2,500.00</td>
> <td>$2,500.00</td>
> <td>$2,500.00</td>
> <td>$2,500.00</td>
> <td>$2,500.00</td>
> </tr>
> <tr value="2">
> <td>Progressive Performance</td>
> <td>$2,500.00</td>
> <td>$0.00</td>
> <td>$2,500.00</td>
> <td>$2,500.00</td>
> <td>$2,500.00</td>
> <td>$2,500.00</td>
> <td>$2,500.00</td>
> <td>$2,500.00</td>
> <td>$2,500.00</td>
> <td>$2,500.00</td>
> <td>$2,500.00</td>
> <td>$2,500.00</td>
> </tr>
>
> <tr value="2">
> <td>Profit/Loss</td>
> <td>$2,500.00</td>
> <td class="Loss">$0.00</td>
> <td>$2,500.00</td>
> <td>$2,500.00</td>
> <td>$2,500.00</td>
> <td>$2,500.00</td>
> <td>$2,500.00</td>
> <td>$2,500.00</td>
> <td>$2,500.00</td>
> <td>$2,500.00</td>
> <td>$2,500.00</td>
> <td>$2,500.00</td>
> </tr>
>
> </tbody>
> </table>
>
> Basically I want all the cells with the class of "Loss" to appear red,
> here
> is my CSS:
>
> #MonthlyResultsTable tbody tr .Loss
> {
> color: red;
> }
>
> When I view the page, nothing changes - all the text remains black. If I
> try
> this:
>
> #MonthlyResults #MonthlyResultsTable tbody tr td
> {
> color: red;
> }
>
> Then all the cells become red. Why won't the first CSS example work for
> the
> table?
>
> Jas.
>
> --
> No virus found in this outgoing message.
> Checked by AVG Free Edition.
> Version: 7.5.432 / Virus Database: 268.17.12/653 - Release Date:
> 26/01/2007
> 11:11
>
>
> _______________________________________________
> Dojo FAQ: http://dojo.jot.com/FAQ
> Dojo Book: http://manual.dojotoolkit.org/DojoDotBook
> Dojo-interest at dojotoolkit.org
> http://dojotoolkit.org/mailman/listinfo/dojo-interest
>
>
--
View this message in context: http://www.nabble.com/FilteringTable---CSS-Problem.-tf3129282.html#a8670997
Sent from the Dojo mailing list archive at Nabble.com.
More information about the Dojo-interest
mailing list