Welcome to the LimeSurvey Community Forum

Ask the community, share ideas, and connect with other LimeSurvey users!

vertical text

  • Mark_V
  • Mark_V's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
3 years 7 months ago #205068 by Mark_V
vertical text was created by Mark_V
I have a 'array by column' question of which I want the column labels to be oriented vertically. I have been trying to do this with css classes but I don't get it to work yet.

I define the css class in the question:
.vert { writing-mode: vertical-rl; text-orientation: mixed; }

Next I define the subquestion as follows:
<p class="vert">This is the text</p>

Does anyone have an idea of what I'm doing wrong?
The topic has been locked.
More
3 years 7 months ago #205075 by jelo
Replied by jelo on topic vertical text
You should state your LimeSurvey version and the theme (formally called template) you use. A screenshot of what vertical means to you might help too.

forums.limesurvey.org/forum/design-issue...tical-text-direction

The idea of using a vertical text is seldom a good idea. If you think of mobile devices and different browsers.

The meaning of the word "stable" for users
www.limesurvey.org/forum/development/117...ord-stable-for-users
The topic has been locked.
  • Joffm
  • Joffm's Avatar
  • Away
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
3 years 7 months ago #205076 by Joffm
Replied by Joffm on topic vertical text
Hi,
I played around with "transform" and got this:

Code:
div.vert {
    width: 100px;
    height: 40px;
    color: red;
    -ms-transform: rotate(270deg);
    transform: rotate(270deg);
    margin-left: 38%;
    margin-bottom: 22px;
}

You have to adapt all values to your needs.
Joffm

Volunteers are not paid.
Not because they are worthless, but because they are priceless
The topic has been locked.
More
3 years 6 months ago - 3 years 6 months ago #207190 by osmarllq
Replied by osmarllq on topic vertical text
Hi,

I'm also interested in the vertical alignment of column labels. Where should I place this piece of code. Usually the html markdown works inside the subquestions or answers fields in the question editor, but the .css code you report to change text orientation does not appear to work in this fashion.

Osmar
Last edit: 3 years 6 months ago by osmarllq.
The topic has been locked.
More
3 years 5 months ago - 3 years 5 months ago #207209 by osmarllq
Replied by osmarllq on topic vertical text
Hi,

I've managed to implement a solution similar to Joffm. However, my solution is slightly different. I edited the custom.css file and in order to allow multiple browser compatibility I added the following.css code:

div.vert{

writing-mode: vertical-rl;
-webkit-transform:rotate(180deg);
-moz-transform:rotate(180deg);
-o-transform: rotate(180deg);
transform: rotate(180deg);
text-align: left;

}

Then I added in the question editor the following:

<div class="vert">Question text here</div>
Last edit: 3 years 5 months ago by osmarllq.
The following user(s) said Thank You: tpartner
The topic has been locked.
More
3 years 4 months ago #208740 by HDrew_
Replied by HDrew_ on topic vertical text
@Joffm

Where are you entering this section of code? Is this put into the theme css file or is this just entered in the question/subquestion editor?

Cheers
Harrison
The topic has been locked.
  • Joffm
  • Joffm's Avatar
  • Away
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
3 years 4 months ago #208747 by Joffm
Replied by Joffm on topic vertical text
Hi,
didn't you read osmarllq's last post?

Joffm

Volunteers are not paid.
Not because they are worthless, but because they are priceless
The topic has been locked.

Lime-years ahead

Online-surveys for every purse and purpose