Welcome Guest, Not a member yet? Register   Sign In
html Table helper
#1

[eluser]Ali Fattahi[/eluser]
Hi Dear Development
i have a question about html table helper
i want to generate a table like blow picture
http://i55.tinypic.com/2z7ho3d.png
which the color of first column is gray and 2nd column is white , how can i generate a table like this by table helper ?

Best Regards
#2

[eluser]medianet[/eluser]
Whats html table helper ? I think more useful to use your hands instead of some kind of programs...
#3

[eluser]Ali Fattahi[/eluser]
[quote author="medianet" date="1284049807"]Whats html table helper ? I think more useful to use your hands instead of some kind of programs...[/quote]
oh sorry
i made a mistake
"HTML Table Class" was in my mind
i want to make a table with this class but like that picture . but i don't undestand how can i make 2 columns with diffrent color .
thanks
#4

[eluser]medianet[/eluser]
I think the easiest way to make a table with two columns is to make it in MS Excel. Add the columns that you need, name it and color it...Than you just save it as html...
#5

[eluser]Razedd[/eluser]
medianet, its quite obvious that you are only here to get people to you're website.
This forum is about CodeIgniter not about MS Excel.
#6

[eluser]InsiteFX[/eluser]
Code:
$tmpl = array (
               'table_open'          => '<table border="0" cellpadding="4" cellspacing="0">',

               'heading_row_start'   => '<tr>',
               'heading_row_end'     => '</tr>',
               'heading_cell_start'  => '<th>',
               'heading_cell_end'    => '</th>',

               'row_start'           => '<tr>',
               'row_end'             => '</tr>',
               'cell_start'          => '<td>',
               'cell_end'            => '</td>',

               'row_alt_start'       => '<tr class="alt">',
               'row_alt_end'         => '</tr>',
               'cell_alt_start'      => '<td>',
               'cell_alt_end'        => '</td>',

               'table_close'         => '</table>'
              );

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

In your CSS file add a class:
Code:
.alt {
    background: #ddd;
}

You can do this for any table rows columns and cells.

InsiteFX
#7

[eluser]Ali Fattahi[/eluser]
[quote author="Razedd" date="1284055151"]medianet, its quite obvious that you are only here to get people to you're website.
This forum is about CodeIgniter not about MS Excel.[/quote]

do you think it's Excel ? Are you web designer ? do you know about Tables in HTML ?




Theme © iAndrew 2016 - Forum software by © MyBB