How do I remove the white space before a survey question? | XM Community
Solved

How do I remove the white space before a survey question?

  • 28 June 2019
  • 2 replies
  • 324 views

I am trying to create an exit intent survey for my site. I want the survey to be embedded in the intercept, it's a single question survey so I want the whole question and the submit button visible in the intercept. I don't want the intercept to take up the entire webpage though, so I'm trying to eliminate any white space from the survey to get it to fit. Is there a way to remove the white space from the header of the survey as well as the white space between the last question choice and the submit button?
icon

Best answer by TomG 29 June 2019, 18:11

View original

2 replies

Userlevel 7
Badge +27
Try adding this to the bottom of your question text (in HTML source mode):
```
<style>
#LogoContainer, #HeaderContainer, #ProgressBar { display:none; }
.Skin .SkinInner, .Skin #Buttons { padding-top: 0px; }
.Skin .QuestionOuter, .Skin .QuestionBody { padding-bottom: 0px !important;}
</style>
```
Badge +2
We also had a similar issue with a lot of white space at the top of the survey which meant a lot of wasted real estate when embedded in a website intercept. Tried different code to remove it and nothing worked. Turned out the spacing was in our survey template theme. We reached out to the themes team and this has now been removed.

Leave a Reply