Consider removing inline styles on table headers?

Consider removing inline styles on table headers?

assimilaterassimilater Posts: 3Questions: 0Answers: 0
edited October 2013 in General
Perhaps there's a reason for it I haven't run into but firefox and chrome seem to handle rendering of datatables more or less the same when the width styles attached to the th elements are disabled. To me it would seem a better approach to let the browser handle sizing and the end programmer can then adjust things as-needed more easily with their css styles. I noticed this because styles I had made to adjust sizing so the table looks cleaner were interfered with by these pre-set widths (for my instance this didn't pose an issue in chrome but it did in firefox, and it's such a small detail....)

Image examples

Without my table-sizing CSS
before disabling: http://prntscr.com/1xkglr
after disabling: http://prntscr.com/1xkhiz

With my table-sizing CSS (firefox only)
before disabling: http://prntscr.com/1xklyd
after disabling: http://prntscr.com/1xkmhw

Replies

  • allanallan Posts: 63,498Questions: 1Answers: 10,471 Site admin
    > hrome seem to handle rendering of datatables more or less the same when the width styles attached to the th elements are disabled

    Its a Chrome 30 bug - see the discussion here: http://datatables.net/forums/discussion/17714 . The good news is that they've fixed it - we are just waiting from them to push up the update.

    Allan
This discussion has been closed.