Adjust place of buttons of a DT table in Shiny

I have a DT table in the shiny. I added buttons for downloading the content of the table (Copy, CSV, Excel, PDF). But I would like to change the distance between the first button and "show number of entries" (please see the attached picture and below code). How can I set the distance between the first button and "show entries"

 DT::datatable(data, extensions = "Buttons",
                      options = list(paging = TRUE,
                                     searching = TRUE,
                                     ordering = TRUE,
                                      dom = 'lBfrtip',
                                     buttons = c('copy', 'csv', 'excel', 'pdf'),
                                     lengthMenu=c(5,10,20,100) ))

I found the answer:
I have should add this CSS code in the UI section of my code.

    .sep {
      width: 20px;
      height: 1px;
      float: left;

and in the table function in the server section:

dom = 'l<"sep">Bfrtip'

The answer was given here.

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.

If you have a query related to it or one of the replies, start a new topic and refer back with a link.