How to set a width of a column?

How to set a width of a column?

ZlatanOmerovicZlatanOmerovic Posts: 4Questions: 0Answers: 0
edited March 2010 in General
Is it possible to set a width for a specific individual column of a DataTable - table ?

I'm trying something with HTML tags for width and CSS, but with no success.

If possible, any help would be great :)

Thanks to all.

Replies

  • vexvex Posts: 30Questions: 0Answers: 0
    http://datatables.net/usage/columns - you can use sClass and/or sWidth.
  • ZlatanOmerovicZlatanOmerovic Posts: 4Questions: 0Answers: 0
    thanks vex ;) do you use simphony as your default PHP scripting framework ?
  • allanallan Posts: 63,498Questions: 1Answers: 10,471 Site admin
    DataTables should keep the width that you set in the HTML - and 1.6.2 is slightly better at this than previous versions. If that doesn't work - then it's possibly a bug (could you post an example?). Otherwise, as vex rightly says, sWidth / sClass are ideal for this.

    Allan
This discussion has been closed.