How can I reduce white space in Dawn theme product page?

Topic summary

Goal: reduce excessive white space on the Dawn theme product page (primarily mobile).

Proposed solution (mobile-only CSS):

  • Add a media query for 320–767px and adjust spacing on product text and title.
  • Key rules used: .product__text { margin: 0; } and .product__title { word-break: break-word; margin-top: 0; margin-bottom: 1.5rem; }. Alternative: p.product__text { margin: 0; margin-bottom: -14px; } with !important if needed.

Where to place the code:

  • Prefer base.css or theme.css/style.css (append at the bottom).
  • Alternatively, add directly in theme.liquid within a Liquid style block: {% style %} … {% endstyle %}.

Issues encountered and fixes:

  • Confusion about adding code “above ” in base.css (CSS files don’t have body tags).
  • Red error in theme.liquid due to incorrect closing tag; fixed by using {% endstyle %}.
  • Initially worked only in the theme editor preview; after correcting placement/closing tag, it worked on mobile.

Artifacts: screenshots were shared to illustrate the whitespace and results.

Outcome: spacing successfully reduced; issue resolved.

Summarized with AI on January 16. AI used: gpt-5.

Good morning,

I would like to reduce the white space a little (highlight in blue on the screenshot) in order to bring the writings together while remaining consistent in the layout of the text

Do you know how to do it please?

Theme: Dawn
Website: jadis-shop.com
password:rj

Hi , @JADIS .

Follow These Steps.

Goto Online store > Assets > Edit code > find Base.css File and paste the code mentioned below.

@media (min-width:320px) and (max-width:767px) {

p.product__text {margin: 0px;margin-bottom: -14px;}

}

Result:

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

Hi @JADIS

Follow these Steps:

Go to Online Store Edit Code Find theme.liquid file or base.css

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

@media (min-width:320px) and (max-width:767px){
.product__text {
    margin: 0;
}

.product__title {
    word-break: break-word;
    margin-bottom: 1.5rem;
    margin-top: 0;
}
}

RESULT:

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

i don’t have /body on base.css … so how can i do please ?

when i put the code at the bottom of base.css it don’t work… how can i do please ?

@JADIS You can add this code in theme.css/style.css

@media (min-width:320px) and (max-width:767px){
.product__text {
    margin: 0;
}

.product__title {
    word-break: break-word;
    margin-bottom: 1.5rem;
    margin-top: 0;
}
}

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

@JADIS Or you can add this code in theme.liquid file

{% style %}
@media (min-width:320px) and (max-width:767px){
.product__text {
    margin: 0;
}

.product__title {
    word-break: break-word;
    margin-bottom: 1.5rem;
    margin-top: 0;
}
}
{% style %}

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

Please find theme.css/style.css and paste the code very bottom.

it doesnt work on theme.liquid, there is a red error message

@JADIS can you share a screenshot where you put code?

yes i do but it doesnt change anything bro… could you help me please ?

Ok, add these code,

@media (min-width:320px) and (max-width:767px) {

p.product__text {margin: 0px !important;margin-bottom: -14px !important;}

}

I tested at the bottom of the file, above /body and under /body and the three don’t work

What screen you check in bro dekstop and mobile i will provided you mobile screen code.

@JADIS Sorry my bad replace this code with the previous one.

{% style %}
@media (min-width:320px) and (max-width:767px){
.product__text {
    margin: 0;
}

.product__title {
    word-break: break-word;
    margin-bottom: 1.5rem;
    margin-top: 0;
}
}
{% endstyle %}

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

it work only on the edition theme page but when i go on my phone on the site, it’s not working (proof in screenshot)

thanks its work !!!

ITS WORKING thanks

@JADIS If I managed to help you then, Please Like it and Mark it as Solutions