Table in text display question - issues with borders

More
4 weeks 1 day ago #160573 by Gensz78
Gensz78 created the topic: Table in text display question - issues with borders
Hello!

I'd like to insert a table in a text display question but I can't seem to get the table to show properly: the inside borders don't show so the table is confusing. See attached for picture of table issue and survey structure.

I'm using Version 2.65.1+170522 and the default template (flat and modern). Please note that I can't change the template.

Thanks!

Gen


File Attachment:

File Name: limesurvey...7358.lss
File Size:13 KB


Attachments:

Please Log in to join the conversation.

More
4 weeks 1 day ago #160574 by Joffm
Joffm replied the topic: Table in text display question - issues with borders
Hi,
1. add some styles
<style type="text/css">
.mytable {
    border: 3px solid red;
    width:100%;  
    border-collapse: collapse;
}
.mycell {
    border: 1px solid yellow;
    padding: 5px;
  }
</style>

2, add the classes:
<table class="mytable">
	<tbody>
		<tr>
			<td class="mycell">test</td>
			<td class="mycell">test</td>
		</tr>
		<tr>
			<td class="mycell">test</td>
			<td class="mycell">test</td>
		</tr>
		<tr>
			<td class="mycell">test</td>
			<td class="mycell">test</td>
		</tr>
	</tbody>
</table>

Result:


Best regards
Joffm
Attachments:
The following user(s) said Thank You: DenisChenu

Please Log in to join the conversation.

More
4 weeks 1 day ago #160575 by Gensz78
Gensz78 replied the topic: Table in text display question - issues with borders
Thank you so much!!!

Gen

Please Log in to join the conversation.

More
3 weeks 6 days ago #160678 by DenisChenu
DenisChenu replied the topic: Table in text display question - issues with borders
Another solution : use boostrap class.
<table class="table table-bordered">
See getbootstrap.com/docs/3.3/css/#tables

Assistance on LimeSurvey forum and LimeSurvey core development are on my free time.
I'm not a LimeSurvey GmbH member, professional service on demand (or search sondages pro).
An error happen ? Before make a new topic : remind the Debug mode .

Please Log in to join the conversation.

More
3 weeks 6 days ago #160683 by Joffm
Joffm replied the topic: Table in text display question - issues with borders
Thanks, Denis, to remind me.

Too often I forget about the bootstrap classes.

Joffm

Please Log in to join the conversation.

More
3 weeks 6 days ago #160686 by DenisChenu
DenisChenu replied the topic: Table in text display question - issues with borders
Hey, your solution are good too :)

Assistance on LimeSurvey forum and LimeSurvey core development are on my free time.
I'm not a LimeSurvey GmbH member, professional service on demand (or search sondages pro).
An error happen ? Before make a new topic : remind the Debug mode .

Please Log in to join the conversation.

Start now!

Just create your account and start using Limesurvey today.

Register now
Join our Newsletter!