Need a Code to Modify the padding for - Question Body | XM Community
Solved

Need a Code to Modify the padding for - Question Body

  • 17 November 2018
  • 2 replies
  • 179 views

Badge
Hi Team,

I have been going through the forum and so far it has been very useful.
I am in need of code to reduce the padding for the question Body.

I am using the below code in the Custom CSS Code, however in the preview of the survey this doesnt come into effect.

.Skin .QuestionText {
padding-left: 1px;
padding-top: 1px;
padding-right: 1px;
padding-bottom: 10px;
}

The above code for Question Text is working.

However for Question body the padding remains the same it is at 30px 20px 30px.
I want it to be updated as per below.

.Skin .QuestionBody {
padding: 1px 1px 5px;
}

!


Would anyone be able to help? Thank you!
icon

Best answer by rakesh_dayalan 17 November 2018, 14:55

View original

2 replies

Hello @rakesh_dayalan ,

Try adding "imporant" tag

.Skin .QuestionBody {
padding: 1px 1px 5px!important;
}
Badge
@Shashi

Thanks for the Reply. I tried the code, however it didn't work.

I had to change it from "Skin .QuestionBody" to ".Skin .MC .QuestionBody"
and this worked.

.Skin .MC .QuestionBody {
padding-top: 0px;
padding-bottom: 10px;
}

Rakesh

Leave a Reply