Welcome, Guest
Username: Password: Remember me

TOPIC: Align array answers

Align array answers 1 year 1 month ago #98054

Hi

This is probably an easy one - but I can't seem to find the answer!

I want to align the answers in an array to the top of the cell - some answers have longer text, which as the div is vertically aligned to the bottom, means that the longer answers rise up from the others and look more prominent. I'm using an adapted Limespired template.

I tried vertically aligning them to the top of the thead div in the css but that doesn't seem to work?

I've attached an image of what I'm trying to achieve!


Attachment arrayimage.jpg not found

The administrator has disabled public write access.

Align array answers 1 year 1 month ago #98056

  • DenisChenu
  • DenisChenu's Avatar
  • OFFLINE
  • Moderator Lime
  • Posts: 6252
  • Thank you received: 799
  • Karma: 239
Hello,

Look at template.css, you have to fix vertical-align : top for table.question thead th

Maybe for whole question, maybe you have already some vertical align on your css.

( Like holch say after: maybe it's better to do like this:
Don't known<br />0
Not important<br />1
2
..
)
Last Edit: 1 year 1 month ago by DenisChenu. Reason: Like Holch
The administrator has disabled public write access.

Align array answers 1 year 1 month ago #98057

  • holch
  • holch's Avatar
  • OFFLINE
  • LimeSurvey Team
  • Posts: 2605
  • Thank you received: 302
  • Karma: 110
There is for sure a way to do this with CSS. But honestly, I think the numbers should be as close as possible to the scale (radio buttons).

I would put the number at the end of the text with a line break before. This will for sure look a lot better and is a lot easier to read.
Have a look at the manual! It is a really valuable source for information. Here some helpful links:
Manual (EN) | Question Types | Question Attributes | Workarounds

If you found this answer helpful and it saved you some time please consider a donation to the project to keep Limesurvey going!
The administrator has disabled public write access.

Align array answers 1 year 1 month ago #98065

Thanks guys

Very helpful - I think that's what I'll do!
The administrator has disabled public write access.
Moderators: ITEd
Time to create page: 0.142 seconds
Donation Image