Welcome Guest, Not a member yet? Register   Sign In
How do I set column width?
#1

[eluser]Alhazred[/eluser]
I need to set the columns' width for a table, but I can't find anything about that.

Let's say that I dave this table
Code:
---------------------------------------
| ID | NAME | SURNAME | EMAIL         |
---------------------------------------
|  1 | Jhon | Red     | [email protected] |
|  2 | Dave | White   | [email protected] |
---------------------------------------

I want to set the ID column to 60px, NAME column to 200px... and so on.

How can I do?
#2

[eluser]Alhazred[/eluser]
Solved.

Code:
$this->table->set_heading(
    array('data' => 'ID', 'style' => 'width:60px'),
    array('data' => 'NAME', 'style' => 'width:200px'),
    ....




Theme © iAndrew 2016 - Forum software by © MyBB