How to align and divide a custom list into a 4 columns

Topic summary

A user seeks help aligning and dividing a custom vendor list into 4 columns on their Shopify store page. They’ve shared their current Liquid code implementation, which displays vendors alphabetically with letter-based navigation.

Current Issue:

  • The list displays vendors grouped by first letter
  • Needs to be formatted into a 4-column layout

Proposed Solution:
A PageFly representative provided CSS-based guidance:

  • Navigate to Online Store → Theme → Edit code
  • Locate the styles.css file
  • Add CSS code targeting .all_column > div with text-align: center !important

Status:
Another community member confirmed the list already displays in 4 columns on their device, suggesting the issue may be device-specific or already resolved. The solution focuses on text alignment rather than column division itself.

Summarized with AI on November 21. AI used: claude-sonnet-4-5-20250929.

I would like to align and divide a custom list into a 4 columns, here’s the code that I’ve used in a custom liquid

https://macaronikids.com/pages/designersv2

{{ page.content }}
{% assign alphabet_list = "A,B,C,D,E,F,G,H,I,J,K,L,M,N,O,P,Q,R,S,T,U,V,W,X,Y,Z" | split: ',' %}

{% for letter in alphabet_list %}
{% assign check_letter = false %}
{{ letter }}

{%- for collection in collections -%}
{% assign first_letter = collection.title | truncate: 1, ‘’ | upcase %}
{%- for product_vendor in shop.vendors -%}
{% if product_vendor == collection.title %}
{% if first_letter == letter %}
{% assign check_letter = true %}
{{ collection.title }}

{% endif %}
{% endif %}
{%- endfor -%}
{%- endfor -%}


{%- unless check_letter -%}

.indent-letter__{{ letter }} { display: none; }

{%- endunless -%}

{% endfor %}

@Litos

@KetanKumar

@PageFly-Victor

@GemPages

@Ninthony

Hi,

I checked it in my device in that list already divide in 4 columns.

Thank you.

Hi [email removed]Lichael06

You can try this code by following these steps:

Step 1: Go to Online Store->Theme->Edit code.

Step 2: Search file styles.css

Step 3: Paste the below code at bottom of the file → Save

.all_column>div{text-align:center !important}

Hope my solution works perfectly for you!

Best regards,

Victor | PageFly