Skip Navigation

[Resolved] Table Loop – Column 1 Offset Padding

This support ticket is created 5 years, 10 months ago. There's a good chance that you are reading advice that it now obsolete.

This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.

Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.

Sun Mon Tue Wed Thu Fri Sat
- 9:00 – 12:00 9:00 – 12:00 9:00 – 12:00 9:00 – 12:00 9:00 – 12:00 -
- 13:00 – 18:00 13:00 – 18:00 13:00 – 18:00 14:00 – 18:00 13:00 – 18:00 -

Supporter timezone: America/Jamaica (GMT-05:00)

This topic contains 1 reply, has 2 voices.

Last updated by Shane 5 years, 10 months ago.

Assisted by: Shane.

Author
Posts
#1227252
screen.jpg

Hi

I have a view set for blog posts on the homepage. All displays without issue, however column 1 appears to have no padding at the top but other columns do. Removing all css, the issue remains so guessing its something in the Loop editor.

Attached a screenshot for reference. Here is the code being used.

[wpv-layout-start]
[wpv-items-found]
<!-- wpv-loop-start -->
<table width="100%" class="wpv-loop js-wpv-loop">
<wpv-loop wrap="3" pad="true">
[wpv-item index=1]
<tr>
<td class="blog-item">
[wpv-post-body view_template="loop-item-in-blog-home-view"]
</td>
[wpv-item index=2]
<td class="blog-item">
[wpv-post-body view_template="loop-item-in-blog-home-view"]
</td>
[wpv-item index=3]
<td class="blog-item">
[wpv-post-body view_template="loop-item-in-blog-home-view"]
</td>
</tr>
[wpv-item index=pad]
<td></td>
[wpv-item index=pad-last]
<td></td>
</tr>
</wpv-loop>
</table>
<!-- wpv-loop-end -->
[/wpv-items-found]
[wpv-no-items-found]
[wpml-string context="wpv-views"]No items found[/wpml-string]
[/wpv-no-items-found]
[wpv-layout-end]

CSS

.blog-item {
width: 32%!important;
border: none !important;
}


@media screen and (max-width: 600px) {
.blog-item {
width: 100%!important;
border: none !important;
}
}

table {
border: none !important;
border-collapse: collapse;
margin: 0;
padding: 0;
width: 100%;
table-layout: fixed;
}

table tr {
border: none !important;
}

table td {
border: none !important;
}


@media screen and (max-width: 600px) {
table {
border: none !important;
border-collapse: collapse;
}

table tr {
border: none !important;
border-collapse: collapse;
display: block;
}

table td {
border: none !important;
border-collapse: collapse;
display: block;
text-align: left;
}
}

#1227401

Shane
Supporter

Languages: English (English )

Timezone: America/Jamaica (GMT-05:00)

Hi Ben,

Thank you for contacting our support forum.

Would you mind sending me a link to this page so that I can have a look ?

Thanks,
Shane