5

How can I decrease the space between boxes in Shiny dashboard?

I have tried the following:

.box-body{
    margin: 0 !important;
    padding: 0 !important;}

But that seems to add a margin towards the inside of the box. What I want is to reduce the space between boxes such that these boxes are basically touching each other.

boxes example

2 Answers2

4

Use only this CSS:

[class*="col-lg-"],[class*="col-md-"],
[class*="col-sm-"],[class*="col-xs-"]{
    padding-right:0 !important;
    padding-left:0 !important;
}
Rashid
  • 272
  • 2
  • 6
2

Here are the css properties that cause your boxes to be separated the way the are. The col classes are found in bootstrap.css and .box can be found in AdminLTE.min.css.

.box { margin-bottom: 0; } 

[class*="col-lg-"],[class*="col-md-"],
[class*="col-sm-"],[class*="col-xs-"]{
  padding-right:0 !important;
  padding-left:0 !important;
}