Black Friday 2026 50% off every plan Our biggest deal of the year on #1 Joomla products.
Ends in 12d 08h 46m 43s
Claim 50% off
Awaiting an answer Templates

Help with grid/column layout with text

Asked by trey-braid 4 years ago Last activity 4 years ago

ESPORTS TEMPLATE

https://billingsblizzardhockey.com/NEW/index.php/team-mm/roster

Using Regular Tabs and Articles Anywhere with Custom Fields to pull in info. Please look at link and let me know what CSS I need to add so the text is positioned below the images. I talked to Peter with Regular Tabs and he said this was a result of the template.css

<p>{articles category="Roster" tags="Forwards"}</p>
<p>{if first}</p>
<div class="grid grid-cols-6 gap-4">
    <p>{/if}</p>
    <div class="panel">
        <p>[image-fulltext layout="true" width="175"]</p>
        <p>[number]  [link][title][/link]</p>
        <p>[height]  |  [weight]</p>
        <p>[school]  |  [experience]</p>
    </div>
    <p>{if last}</p>
</div>
<p>{/if}</p>
<p>{/articles}</p>

5 replies

Paul Frankowski Senior Staff
4 years ago · edited

Hi,

you have neutralise float: left it means that inside custom.css in line 33

use:

.article-details .article-full-image, .article-intro-image {
  text-align: left;
  margin-bottom: 2rem;
  margin-right: 25px;
  float: none !important;
}

I added extra line.
Whole rest you should be able to manage.

Guides: https://www.w3schools.com/CSSref/pr_grid.asp

trey-braid Asked this

That doesn't work.

When I add that instead of an image being in 6 columns it is 1 image centered with 6 rows...

Then when I click on the link to go to the details page everything is also centered

Thoughts...

trey-braid Asked this

Paul I found a solution.

I compared the page with another site with a comparable page utilizing bootstrap and saw where the other site had the:

div class="row" being used whereas (Peter) you were using div class="grid grid-cols-6 gap-4"

<p>{articles category="Roster" tags="Forwards"}</p>
<p>{if first}</p>
<div class="row">
<p>{/if}</p>
<div class="panel">
<p>[image-fulltext layout="true" width="175px"]</p>
<p>[number]&nbsp; [link][title][/link]</p>
<p>[height]&nbsp; |&nbsp; [weight]</p>
<p>[school]&nbsp; |&nbsp; [experience]</p>
</div>
<p>{if last}</p>
</div>
<p>{/if}</p>
<p>{/articles}</p>

After doing some research in your forum, I saw where Helix Ultimate uses a different version of Bootstrap than Tabs and might cause issues... As soon as I added ROW and refreshed the page everything lined up perfectly. I just have to clean up a bit of styling which I'll do in the Tabs style.min.css file

Paul Frankowski Senior Staff
4 years ago · edited

Helix Ultimate 2.0.x uses Boostrap v5.0.1 -- but soon it should be updated to the last version. Or you can update files manually via FTP.

Pavel

Hi @trey-braid.

Using <p>s as a wrapper for layouts is unacceptable and will cause problems with SEO. Replace it to <div>s

Log in to reply.