Need a Code to Modify the padding for - Question Body | XM Community
Skip to main content
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!
Hello @rakesh_dayalan ,



Try adding "imporant" tag



.Skin .QuestionBody {

padding: 1px 1px 5px!important;

}
@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