product card border

Topic summary

A user working with the Dawn theme needs help adjusting product card borders on collection pages to wrap both the product image and text together.

Solution Provided:

  • Navigate to Shopify admin → Online Store → Themes → Actions → Edit code
  • Open the CSS file (base.css, style.css, or theme.css) in the Assets folder
  • Add custom CSS code that removes the default inner card borders and applies a single border to the entire card element
  • The CSS targets .card--card, .card__inner, and .card--standard classes

Outcome:
The solution was accepted and marked as resolved. A visual example was provided showing the border now wrapping the complete product card as intended.

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

hi there on collection pages i have product cards and i want its border to wrap text as well as product image can anyone help me sharing url and i am using Dawn theme https://sundip1.myshopify.com/collections/ketchup-and-sauces

1 Like

Hi

Could you share an example image that you would like?

Hi @Nabeelshakil

Try this one.

  1. From your Shopify admin dashboard, click on “Online Store” and then “Themes”.
  2. Find the theme that you want to edit and click on “Actions” and then “Edit code”.
  3. In the “Assets” folder, click on “base.css, style.css or theme.css” file, depending on which file your theme uses to store its CSS styles. At the bottom of the file, add the following CSS code:
.collection .card--card, .card--standard .card__inner {
    border: none !important;
}

.collection .card.card--standard.card--media {
    border: var(--border-width) solid rgba(var(--color-foreground), var(--border-opacity));
}

Please don’t forget to Like and Mark Solution to the post that helped you. Thanks!

1 Like

thanks for the help dear