Flexible table width example: css uses div.container but I don't see that in the HTML
Flexible table width example: css uses div.container but I don't see that in the HTML

this example:
https://datatables.net/examples/basic_init/flexible_width.html
the ccs looks like this:
div.container {
width: 80%;
}
but I don't see the class container in the HTML. should this be something like dt-container?
Answers
That came from the 1.x example. I believe it is simply there to make the container the
table
is in smaller than it typically would be in the other examples. Its purely for the exampel but is not specifically needed in your solution. The key is to addstyle="width:100%"
to thetable
tag. I believe the next release or so of Datatab;es will automatically do this for you.@allan may need to clean up the CSS tab of the example you linked to.
Kevin
Good point - thank you both! I've committed a change which I'll deploy to the site soon.
Allan