-
Locate the code that generates the collapsible content section. This could be in a section or snippet file, or within the theme’s Liquid templates.
-
Identify the HTML markup that generates the rows or containers for each collapsible item. It may involve
<div>,<ul>, or<li>elements. -
Check if there are any CSS classes or styles applied to these row containers. Look for properties like
display,float, orflex. -
If the rows are currently displayed vertically (one below the other), you’ll need to modify the CSS to make them display horizontally in columns of 3.
-
Apply a CSS layout technique such as using a flexbox or grid to achieve the desired column layout. You can set the
flex-wrapproperty towrapand adjust the widths or flex properties of the individual items to distribute them evenly. -
Save the changes and preview your website to see if the collapsible content rows are now displayed in columns of 3.
