DataTables Responsive element.style Issues
DataTables Responsive element.style Issues
![majortom84](https://secure.gravatar.com/avatar/e832bbb42ec8cd293597c53a6af71ad1/?default=https%3A%2F%2Fvanillicon.com%2Fe832bbb42ec8cd293597c53a6af71ad1_200.png&rating=g&size=120)
Hello, I am trying to implement responsive table but it looks like when responsive: true
is added to the javascript $('#table').DataTable()
it is making some inline code element.style
. This element.style
is adding a width that is making the table not stretch all the way out on small to large conversion. Is there anything I can do to remove element.style
?
This question has an accepted answers - jump to answer
This discussion has been closed.
Answers
I fixed this by adding the following
$("#table").addClass("width-100"); // add class to override element.style width
In CSS
.width-100{
width: 100% !important;
}