javascript - How to add margin to table in jquery datatables? -


i need add space between table, table length , table pagination. this:enter link description here js code:

$(document).ready(function () {         $('#data-table').datatable({             bfilter: false,             aocolumndefs: [               {                   bsortable: false,                   atargets: [1, 2],                },             {                 'bvisible': false,                 atargets: [4],             },             {                  "targets": 0,                 "render": function (data, type, full, meta)                 {                     return '<a href = "@(url.action("employeeaccount", "company"))?employeeid=' + full[4] + '">' + data + '</a>';                 }             },             ]         })     }); 

html:

     <table class="table table-striped table-bordered table-hover little_margin_table" id="data-table" width="100%"> /...                     </table> 

how can it?

in css:

#data-table {     margin: 20px 0; } 

but, honest, question lacking html and/or css. it's blatantly non-researched, adding margins between html elements can understood without posting question on so.

in case, css create top , bottom margin of 20px table.


Comments

Popular posts from this blog

php - Wordpress website dashboard page or post editor content is not showing but front end data is showing properly -

How to get the ip address of VM and use it to configure SSH connection dynamically in Ansible -

javascript - Get parameter of GET request -