1. Helix Ultimate
  2. Friday, 08 November 2019
Hi!

I need help to make a table responsible at the frontpage.

Got this code.

<div style="overflow-x: auto;">
<table style="height: 100%; width: 100%;" cellspacing="5" cellpadding="5">
<tbody>
<tr>
<td style="width: 50%;">CONTENT</td>
<td style="width: 50%;" valign="top">CONTENT</td>
</tr>
<tr>
<td style="width: 50%;" valign="top">CONTENT</td>
<td style="width: 50%;">CONTENT</td>
</tr>
</tbody>
</table>
</div>


It makes the table responsive. But I want to have ONE column not two.

Now it looks like this in a cell phone.
A B
C D


I want:
A
B
C
D


Would be very happy for some help!:)

Kind regards
Ola
Responses (3)
Hi,
I would like to suggest you to use our 'table' addon available in sp page builder.
It would be better manageable then i think.
Anyways, if you want to know regarding your current question, then
Please keep each <td> with separate <tr>
Something like this:

<tr>
<td>CONTENT</td>
</tr>
<tr>
<td>CONTENT</td>
</tr>
<tr>
<td>CONTENT</td>
</tr>
<tr>
<td>CONTENT</td>
</tr>


Best Regards
  1. more than a month ago
  2. Helix Ultimate
  3. # 1
Hi Rashida!

I don't use Pagebuilder on that site

I found this code snippet that works (I don't need a table)

Row 1 (A+B)
<div class="container">
<div class="row">
<div class="col-sm-6">CONTENT</div>
<div class="col-sm-6">CONTENT</div>
</div>
</div>


Row 2 (C+D)
<div class="container">
<div class="row">
<div class="col-sm-6">CONTENT</div>
<div class="col-sm-6">CONTENT</div>
</div>
</div>


On desktop the output is correct:
AB
CD


But on mobile the output is
AB
DC


Any idea of why the second row change order? You can check yourself at http://www.frmclinicssweden.com

I know this is more of a CSS-issue than a template issue...

Kind regards
Ola
  1. more than a month ago
  2. Helix Ultimate
  3. # 2
Hi,
Initially, you were asking about the table, that's why I thought regarding this.

Anyways, I found out your site good with the ordering issues too.

Regards
  1. more than a month ago
  2. Helix Ultimate
  3. # 3


There are no replies made for this post yet.
Be one of the first to reply to this post!


This forum is archived

This forum has been archived. Please use JoomShaper official support system.