Left aligned mobile product descripion text

Topic summary

A user needed help aligning product description text to the left on mobile devices for their Shopify store using the ‘Next’ theme. The text displays centered on mobile but left-aligned on desktop.

Solution provided:

  • Add CSS code to the theme’s stylesheet (screen.css file in this case)
  • Use a media query targeting screens max-width 760px
  • Apply text-align: left !important; to .swiper-slide.swiper-slide-active

Resolution:
The issue was resolved after the user located the correct CSS file (screen.css) and applied the provided code snippet. Initial confusion arose because the user couldn’t find the commonly referenced base.css, style.css, or theme.css files in their theme structure.

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

Hi,

On mobile i would like to have the product description aligned to the left (just like desktop). The text comes in via a dynamic source.

How can i do this?

The Theme im using is ‘Next’. The url is https://theflowerfield.nl/

Can you help me?

1 Like

Hello @brtbbnk
I tried with code, but on mobile, the text is not displaying properly the way you want.

Hi @brtbbnk

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:
@media only screen and (max-width: 760px) {
.swiper-slide.swiper-slide-active {
    text-align: left !important;
}
}

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

Hi, thanks for your reply!

I saw a comment like this before. I can’t find any of the “base.css, style.css or theme.css” files. Not in the assets map, but also not in any ‘edit code’ map.

try to paste in the screen.css file.

1 Like

Perfect, that works. Thanks!!