Welcome Guest, Not a member yet? Register   Sign In
Formatting Tables with CSS
#2

[eluser]pickupman[/eluser]
Check out the HTML Table Class docs from the user guide. You can see that you can set an alternate row start configuration.
Code:
//table template
$tmpl = array (
                    'row_alt_start'       => '<tr class="alt">',
                    'row_alt_end'         => '</tr>',
                    'cell_alt_start'      => '<td>',
                    'cell_alt_end'        => '</td>',

              );
$this->table->set_template($tmpl);

//CSS
tr.alt td {background: #ccc;}


Messages In This Thread
Formatting Tables with CSS - by El Forum - 04-15-2010, 07:23 PM
Formatting Tables with CSS - by El Forum - 04-15-2010, 07:36 PM
Formatting Tables with CSS - by El Forum - 04-15-2010, 07:37 PM
Formatting Tables with CSS - by El Forum - 04-15-2010, 08:38 PM
Formatting Tables with CSS - by El Forum - 04-15-2010, 10:06 PM
Formatting Tables with CSS - by El Forum - 04-15-2010, 10:48 PM
Formatting Tables with CSS - by El Forum - 04-15-2010, 11:05 PM
Formatting Tables with CSS - by El Forum - 04-15-2010, 11:43 PM
Formatting Tables with CSS - by El Forum - 04-16-2010, 12:17 AM
Formatting Tables with CSS - by El Forum - 04-16-2010, 05:54 AM
Formatting Tables with CSS - by El Forum - 04-16-2010, 06:39 AM
Formatting Tables with CSS - by El Forum - 04-16-2010, 08:18 AM
Formatting Tables with CSS - by El Forum - 04-16-2010, 06:53 PM
Formatting Tables with CSS - by El Forum - 04-17-2010, 01:16 AM



Theme © iAndrew 2016 - Forum software by © MyBB