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

Need a Code to Modify the padding for - Question Body

  • November 17, 2018
  • 2 replies
  • 336 views

Forum|alt.badge.img
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!

Best answer by rakesh_dayalan

@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

2 replies

  • 0 replies
  • November 17, 2018
Hello @rakesh_dayalan , Try adding "imporant" tag .Skin .QuestionBody { padding: 1px 1px 5px!important; }

Forum|alt.badge.img
  • Author
  • 2 replies
  • Answer
  • November 17, 2018
@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