Willkommen, Gast
Benutzername: Passwort: Angemeldet bleiben:

THEMA: Align array answers

Align array answers 1 Jahr 3 Monate her #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!


Anhang arrayimage.jpg nicht gefunden

Der Administrator hat öffentliche Schreibrechte deaktiviert.

Align array answers 1 Jahr 3 Monate her #98056

  • DenisChenu
  • DenisChenus Avatar
  • OFFLINE
  • Moderator Lime
  • Beiträge: 6429
  • Dank erhalten: 840
  • Karma: 249
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
..
)
Letzte Änderung: 1 Jahr 3 Monate her von DenisChenu. Begründung: Like Holch
Der Administrator hat öffentliche Schreibrechte deaktiviert.

Align array answers 1 Jahr 3 Monate her #98057

  • holch
  • holchs Avatar
  • OFFLINE
  • LimeSurvey Team
  • Beiträge: 2845
  • Dank erhalten: 358
  • Karma: 124
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!
Der Administrator hat öffentliche Schreibrechte deaktiviert.

Align array answers 1 Jahr 3 Monate her #98065

Thanks guys

Very helpful - I think that's what I'll do!
Der Administrator hat öffentliche Schreibrechte deaktiviert.
Moderatoren: ITEd
Ladezeit der Seite: 0.151 Sekunden
Donation Image