add a thin line below price on product page

Topic summary

  • Goal: Add a thin line under the price on the product page (Dawn theme), matching a reference image.

  • Initial approach: Suggested adding CSS in base.css: .price { border-bottom: 1px solid #bebebe; padding-bottom: 20px; margin-bottom: 30px; } (with an option to limit to mobile via media query). User reported it didn’t work.

  • Adjustment: Advised inserting the same CSS in theme.liquid before the tag. User confirmed this worked.

  • New issue: The line also appeared under product cards on the homepage, at least on mobile. User requested that the line show only on the product page and not on product cards.

  • Follow-up: Responder couldn’t reproduce the issue on desktop and shared a screenshot; user clarified the problem occurs on mobile and asked for a mobile check.

  • Status: Partially resolved—line shows under product price, but scoping is incorrect (affecting homepage product cards on mobile). Awaiting a revision to restrict the CSS to product pages only and confirmation after checking on mobile. Unresolved question: how to scope the CSS so it applies only to the product page.

Summarized with AI on December 14. AI used: gpt-5.

Hello, i want to add a thin line below the price on my product page

this is my website, i want it to look something like this:

where there is a thin line underneath the price

my theme is dawn, website url is www.rosella-elegance.com , password is mechaw

Hello @ads18922

Follow these Steps:

  1. Go to the online theme
  2. click on three dots and open the Code editor
  3. Search for Theme.css / base.css
  4. Past that code and save it

You can Simply add this CSS if you want that line to be shown in the Desktop view and mobile view both

.price {
    border-bottom: 1px solid #bebebe;
    padding-bottom: 20px;
    margin-bottom: 30px;
}

Or If you want it only on mobile version you can use this CSS code

@media(max-width:766px){
.price {
    border-bottom: 1px solid #bebebe;
    padding-bottom: 20px;
    margin-bottom: 30px;
}
}

If this solution Work Kindly Like this And Marke it As a Solution
And fuel me up by Buy Me A Coffee

hello this didnt work

Hello @ads18922

did you update that code into your base.css if yes and still didn’t work
then try adding this CSS block to your theme.liquid file just before tag


Because when I use the same code into Dom its works fine See

that worked, thanks!

wait, it works on the product page, but it also added a line to the product cards on the home page. Anyway you can make it so it just appears on the product page and not products cards?

Hello @ads18922

I have not encountered any issue on the home page

i didnt check desktop, but on mobile the line was showing underneath the products cards on the homepage. Can you check on mobile?