Problem loading minified css
Problem loading minified css
Hello, I generated a minified css with the following options:
**jQuery 3 3.6.0, JSZip 2.5.0, pdfmake 0.1.36, DataTables 1.12.1, Editor 2.0.10, AutoFill 2.4.0, Buttons 2.2.3, Column visibility 2.2.3, HTML5 export 2.2.3, Print view 2.2.3, DateTime 1.1.2, Responsive 2.3.0, Scroller 2.0.7, SearchBuilder 1.3.4, SearchPanes 2.0.2, Select 1.4.0, StateRestore 1.1.1
**
(https://datatables.net/download/#bs5/jq-3.6.0/jszip-2.5.0/pdfmake-0.1.36/dt-1.12.1/e-2.0.10/af-2.4.0/b-2.2.3/b-colvis-2.2.3/b-html5-2.2.3/b-print-2.2.3/date-1.1.2/r-2.3.0/sc-2.0.7/sb-1.3.4/sp-2.0.2/sl-1.4.0/sr-1.1.1)
The do not load properly. The file load, but no stylesheet is applied to the page. Example:
<!doctype html>
<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
<title>DataTables Editor</title>
<link rel="stylesheet" type="text/css" href="DataTables/datatables.min.css"/>
</head>
<body class="bootstrap5">
<div class="container">
<h1>
DataTables Editor
</h1>
<table cellpadding="0" cellspacing="0" border="0" class="table table-striped" id="tabledata" width="100%">
</table>
</div>
</body>
<script type="text/javascript" src="DataTables/datatables.min.js"></script>
</html>
You could replace the line
<link rel="stylesheet" type="text/css" href="DataTables/datatables.min.css"/>
with
<link rel="stylesheet" type="text/css" href="https://datatables.net/download/#bs5/jq-3.6.0/jszip-2.5.0/pdfmake-0.1.36/dt-1.12.1/e-2.0.10/af-2.4.0/b-2.2.3/b-colvis-2.2.3/b-html5-2.2.3/b-print-2.2.3/date-1.1.2/r-2.3.0/sc-2.0.7/sb-1.3.4/sp-2.0.2/sl-1.4.0/sr-1.1.1"/>
but this will not work since I included the Datatables Editor.
There's no advise about merging conflicting css styles on the download page:
https://datatables.net/download/
What is wrong with the minified css?
Thanks,
Answers
As far as I can see, downloading it myself, the CSS file for that configuration looks fine.
This is your page using the CDN rather than the downloaded files, which looks as I'd expect - no data since there is no table, and very little other information, but the style file is being loaded.
Perhaps you can create a test case showing the issue so we can offer some help.
Allan