Increasing the Space between Items in "Drag, Drop and Rank" questions. | XM Community
Skip to main content
Solved

Increasing the Space between Items in "Drag, Drop and Rank" questions.

  • July 20, 2021
  • 2 replies
  • 277 views

Forum|alt.badge.img

Hi Everyone,
I am currently using the "Drag, Drop and Rank" question and I have quite a few items in each question. So I try to present items in multiple columns. Thanks to the codes shared in the forum, I have been able to do so and to add borders on each item. However, the space between items becomes very tight, horizontally or vertically, as shown in the screenshots
Does anyone know how to increase the space between items?
Thank you in advance!
2.PNG3.PNG

There is css code that I am using, which is adapted from the forum.

 label[id^="QID"] {
    width: 100px;
    border: 1px solid black;
    padding: 5px;
    display: block;
  }
.Skin .PGR .DragAndDrop .QuestionBody table {
  width: 100%;
}
.Skin .PGR .DragAndDrop .Items {
  width: 350px;
}
html>body .Skin .PGR .DragAndDrop .Items>ul {
  width: 100%;
}
.Skin .PGR .DragAndDrop .Items>ul>li {
  display: inline-block;
  width: 100px!important;
  padding: 5px!important;
}
.Skin .PGR td.groupsContainerTd {
    width: 380px;
min-height: 450px;
height: 450px;
}
.Skin .PGR .DragAndDrop .Group>div>ul, .Skin .PGR .DragAndDrop .Items>ul,
.Skin .PGR .DragAndDrop .NoColumns td.groupsContainerTd div ul {
  width: 100%;
}
.Skin .PGR .DragAndDrop .QuestionBody .Group>div>ul>li {
   display: inline-block;
  width: 100px!important;
  padding: 5px!important;
}
.Skin .PGR .DragAndDrop td.groupsContainerTd div > div {
  min-height: 250px;
  height: 250px;
}
.Skin .PGR .DragAndDrop .QuestionBody span.LabelWrapper label>span {
  display: block;
}


Best answer by rondev

Try using below CSS:
.Skin .PGR .DragAndDrop .QuestionBody .Group>div>ul>li , .Skin .PGR .DragAndDrop .Items>ul>li{
margin: 10px;
}

2 replies

rondev
Level 6 ●●●●●●
Forum|alt.badge.img+22
  • Level 6 ●●●●●●
  • Answer
  • July 20, 2021

Try using below CSS:
.Skin .PGR .DragAndDrop .QuestionBody .Group>div>ul>li , .Skin .PGR .DragAndDrop .Items>ul>li{
margin: 10px;
}


Forum|alt.badge.img
  • Author
  • July 20, 2021

It works well. Other problems are also solved. Thanks a lot!