- Posts: 3
- Thank you received: 0
Welcome to the LimeSurvey Community Forum
Ask the community, share ideas, and connect with other LimeSurvey users!
How to center whole table? Qtype array by column, template default:
- crissi
- Topic Author
- Offline
- New Member
Less
More
9 years 8 months ago - 9 years 8 months ago #111150
by crissi
How to center whole table? Qtype array by column, template default: was created by crissi
Hello dear lime survey community,
I am quite new with CSS and limesurvey. I have created a survey and I am using many question types (ranking, array, multiple choice), one I am using is the array by column question type. I am also using the default template. I have been trying arround to get the whole table to the center of the page, but I have failed!
Could somebody please help me? Column width and alignment of text within the table is fine. I would just like to have the whole thing in the center.
Do I use margin: auto? or hmmmm... help anyone?
Thank you very much in advance.
I am quite new with CSS and limesurvey. I have created a survey and I am using many question types (ranking, array, multiple choice), one I am using is the array by column question type. I am also using the default template. I have been trying arround to get the whole table to the center of the page, but I have failed!
Could somebody please help me? Column width and alignment of text within the table is fine. I would just like to have the whole thing in the center.
Do I use margin: auto? or hmmmm... help anyone?
Thank you very much in advance.
Last edit: 9 years 8 months ago by crissi. Reason: content error
The topic has been locked.
- tpartner
- Offline
- LimeSurvey Community Team
Less
More
- Posts: 10099
- Thank you received: 3589
9 years 8 months ago #111178
by tpartner
Cheers,
Tony Partner
Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
Replied by tpartner on topic How to center whole table? Qtype array by column, template default:
Can you activate a sample survey?
Cheers,
Tony Partner
Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
The topic has been locked.
- crissi
- Topic Author
- Offline
- New Member
Less
More
- Posts: 3
- Thank you received: 0
9 years 8 months ago #111179
by crissi
Replied by crissi on topic How to center whole table? Qtype array by column, template default:
Hello, thank you for answering. I have created a sample survey. I hope it is ok? I have used a slightly modified default template.
agridrivers.limequery.com/index.php/768171/lang-en
agridrivers.limequery.com/index.php/768171/lang-en
The topic has been locked.
- tpartner
- Offline
- LimeSurvey Community Team
Less
More
- Posts: 10099
- Thank you received: 3589
9 years 8 months ago #111188
by tpartner
Cheers,
Tony Partner
Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
Replied by tpartner on topic How to center whole table? Qtype array by column, template default:
Tricky to do because of the widths assigned to the <col> elements by LimeSurvey, but try something like this at the end of template.css:
Code:
.array-flexible-column table.question col { width: auto !important; } .array-flexible-column table.subquestions-list { width: 75%; } .array-flexible-column table.question th.arraycaptionleft { width: 40%; } .array-flexible-column table.question tbody td { width: 20%; }
Cheers,
Tony Partner
Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
The following user(s) said Thank You: crissi
The topic has been locked.
- crissi
- Topic Author
- Offline
- New Member
Less
More
- Posts: 3
- Thank you received: 0
9 years 8 months ago #111263
by crissi
Replied by crissi on topic How to center whole table? Qtype array by column, template default:
Hi, thank you very much for you answer. It made it a bit better
The topic has been locked.