"cell-border" and cdn generator..

"cell-border" and cdn generator..

garysevengaryseven Posts: 1Questions: 1Answers: 0

Hi,

On the download page (https://datatables.net/download/index) I chose various options and used the css cdn file that was generated (https://cdn.datatables.net/v/bs4/dt-1.10.23/fc-3.3.2/fh-3.1.8/r-2.2.7/datatables.min.css)

Note it has 1.10.23 in it.

I wanted the vertical cell lines to show in the table so i followed this example: https://datatables.net/examples/styling/cell-border.html

With the cdn above cell-borders would not work.

I switched the css file to the one in the sample (https://cdn.datatables.net/1.10.23/css/jquery.dataTables.min.css) and the cell-borders did function.

Does anyone know why the cell-borders class works with the latter file, but not with the first?

Thanks,

garyseven

Answers

  • colincolin Posts: 15,237Questions: 1Answers: 2,599

    We're happy to take a look, but as per the forum rules, please link to a test case - a test case that replicates the issue will ensure you'll get a quick and accurate response. Information on how to create a test case (if you aren't able to link to the page you are working on) is available here.

    Cheers,

    Colin

  • kthorngrenkthorngren Posts: 21,174Questions: 26Answers: 4,923

    Looks like you are using Bootstrap. It uses a different set of classnames to style the table than the default styling seen in the example you linked. See this Bootstrap Styling doc for details.

    Kevin

This discussion has been closed.