Thank you!
Thank you!
!
For some reason, it's only happening to all of the text questions in only one of my blocks.
Thank you for the idea. I just tried that and unfortunately it did not work. I'm wondering if there is javascript code I would be able to use.
!
Also, don't forget that it could just be white space on your image. If the image isn't closely trimmed, it might just be displaying the image, not creating spaces. If you don't see spaces on the rich content editor, and there are no ```<br>``` in the code, then you need to crop the image, it's not a code problem.
The spacing between the lines happens between lines of text. Please see example below.
!
I don't see any breaks where they shouldn't be. Do you know if there is anything else I can add to the code? I understand there is something called line-spacing but i'm not sure how to use it.
In your example, that is an image. So the lines need to be removed from the image. If you can show us the real stuff you're working with we can get closer to the solution! In HTML code, line spacing is the ```<br>``` that I showed you. So I'm not sure what else we're looking for here.
when I go to html view, this is what I see.
!
Similar to this video I found online: https://www.youtube.com/watch?v=bFIFp12aLv8
Just tried that. Unfortunately, no luck. It seems as though if I choose to specify the format of the paragraph with font and size then the double space is more prominent. If I remove all formatting, the space isn't as big.
> @TomG
>
> Just tried that. Unfortunately, no luck. It seems as though if I choose to specify the format of the paragraph with font and size then the double space is more prominent. If I remove all formatting, the space isn't as big.
That was an attempt at an easy fix. Preview the block, hover over the question text, right click and Inspect. Look at the element's CSS to figure out what is causing the spacing (probably a line-height style), then create a CSS rule to override it.
Hi Tom,
Thank you for that suggestion. When I click on "Question Text" and change the line-height from 1.5em to 1.9em in inspect, the space between the lines becomes smaller.
!
I'm not very familiar with CSS. Do you a CSS rule I could use to override it?
What's strange is changing it to 1.9em should make the space bigger, not smaller. Maybe you meant to type 1.0em?
```
.Skin .QuestionText {
line-height: 1.0em;
}
```
> @TomG
>
> It worked! Thank you!
>
> Is there a way I can use this CSS code for a specific block?
You can add it in a `<style>` tag to the question text of the first question on each page of the block.
EDIT:
On second thought, it might be easier just to change your `<p><span>` in the question text to a `<div>` and include line-height in the style attribute.
Hi Thebika,
I wrestled with this too. I found this clear explanation online and wanted to share with this community. p-style= is the HTML command you need. Don't forget to put
Technology Sharing: How to Adjust the Line Spacing of a Qualtrics Survey Form?Specifying a line height of 0.9 worked a treat for 3 lines of nice, tight text in my survey, as below.
Sample Survey Round One
Release Date: 20 12 2021
Closing Date : 19 01 2022
Hi All,
Chiming in with my feedback. I too had an issue with double spacing only on the Text/Graphic question type, but spacing was normal on all other question types. If I changed the CSS code, it reduced the line spacing on other question types too much.
Initially, I tried using span tags to change the line spacing on my Text/Graphic question but it did not work. Then I tried Mich's suggestion above and used the p-tags instead and it worked perfectly.
My method - edit the question text, select Rich Text Formatting, and then go into source code. Add this code, which works perfectly:
your text here
Your text here
Your text here
Leave a Reply
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.