remove distance between product title and price - product card

Topic summary

A user seeks to eliminate the vertical spacing between product titles and prices on their product cards in the Dawn theme. They provided screenshots showing the current gap and their desired result with no spacing.

Initial Solution Attempt:

  • Another user suggested adding custom CSS to the base.css file targeting .card__information, .card__heading, and .price classes
  • This approach involved setting margins and padding to zero and using flexbox properties
  • The original poster reported this solution did not work

Alternative Solution:

  • A third user provided a simpler CSS snippet: .card-information > .price { margin-top: 0px !important; }
  • This code should be added via the theme customizer (Online store > Themes > Customize > Theme settings > Custom CSS) rather than directly editing theme files
  • A screenshot was included showing the expected result

Status: The discussion remains open as the original poster has not confirmed whether the second solution resolved the issue.

Summarized with AI on October 31. AI used: claude-sonnet-4-5-20250929.

hello, i would like to remove the small gap between my product title and product price for my product cards:

this is my website, as you can see there is a small gap between the title and price. This is what i want it to look like:

Screenshot 2025-02-18 at 09.54.22.png

where there is no gap.

my website is www.antico-abito.com , theme is dawn

1 Like

Hey @ads18922 ,

To remove the small gap between the product title and the product price on your product cards in the Dawn theme, you can add some custom CSS. Here’s how to do it:

Follow these Steps:

  1. Online Store

  2. Themes

  3. Edit code

  4. Open the file base.css (found under Assets) or theme.css if you’re editing the code directly.

Add the following CSS:

.card__information {
  display: flex;
  flex-direction: column; /* Ensure elements stack vertically */
  gap: 0; /* Remove any gap between title and price */
}

.card__heading {
  margin-bottom: 0; /* Remove space below the title */
}

.card-information .price {
  margin-top: 0; /* Remove space above the price */
  padding-top: 0; /* Remove any additional padding */
}

.price__container {
  margin: 0; /* Ensure no margin inside the price container */
}

Result:

After saving, reload your website to see the changes. The product title and price should now be directly adjacent to each other without a gap.

Let me know how it looks!

If I was able to help you, please don’t forget to Like and mark it as the Solution!
If you’re looking for expert help with customization or coding, I’d be delighted to support you. Please don’t hesitate to reach out via the email in my signature below—I’m here to help bring your vision to life!

Best Regard,
Rajat

hello, just added this code and nothing has changed.

Please add this code to Custom CSS in Online store > Themes > Customize > Theme settings

.card-information>.price { margin-top: 0px !important; }