How to add a 100% width line under each collection? - Dawn Theme

Topic summary

A Shopify store owner using the Dawn theme wants to add a full-width horizontal line beneath each collection section on their homepage.

Three solutions were provided:

  • Solution 1: Insert custom CSS code in theme.liquid file above the </body> tag to style collection sections with bottom borders

  • Solution 2: Add similar CSS styling code in theme.liquid before the </head> tag

  • Solution 3: Use the theme customizer’s Custom CSS section (Online Store > Themes > Customize > Theme settings) to add a border-bottom rule targeting collection sections

All three approaches involve CSS code that adds a 1px solid border beneath collection elements. Each respondent included screenshots demonstrating the visual result. The discussion remains open with no confirmed resolution from the original poster.

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

URL: https://www.meta25.studio/

1 Like

Hey @randytheasian

Follow these Steps:

  1. Go to Online Store

  2. Edit Code

  3. Find theme.liquid file

  4. Add the following code in the bottom of the file above tag


RESULT:

If I managed to help you then, don’t forget to Like it and Mark it as Solution!

Best Regards,
Moeed

1 Like

You can try this code by following these steps:
Step 1: Go to the online store ->Theme ->Edit Code.
Step 2: Find the theme.liquid file and add the following code before the tag


Result:

Hopefully it will help you. If yes then Please don’t forget hit Like and Mark it as solution!

Hi @randytheasian

You can add this code to Custom CSS in Online Store > Themes > Customize > Theme settings

.section:has(.collection) {
border-bottom: 1px solid #141414;
padding-bottom: 20px;
}