How can I adjust padding for full width text on any device?

Topic summary

Adjusting padding in the Shopify Motion theme to make page text span full width across devices.

  • Issue: On maximum viewport width, column text didn’t reach edge-to-edge. Link and screenshots were provided to illustrate spacing.
  • Initial fix attempt: Add CSS in theme.css using a media query (max-width: 600px) to set .template-page .rte-setting.text-spacing { width: unset !important; }. This only affected smaller screens; large screens still had padding.
  • Working fix: Override theme styling via CSS with a media query setting .template-page .rte-setting.text-spacing { width: 700px !important; }. The user confirmed this worked, but it unintentionally changed spacing under “Our Brand Promise.”
  • Targeted solution: Scope the rule to the specific section using its ID (#shopify-section-template--...) combined with .template-page .rte-setting.text-spacing { width: 700px !important; } within the same media query.

Key terms: CSS (styling rules), media query (device/viewport-based CSS), selector (targets elements), theme.css (site stylesheet).

Outcome: A section-specific CSS override resolved the padding issue. The discussion reached a practical resolution with no outstanding questions.

Summarized with AI on February 5. AI used: gpt-5.

Hi there!

Looking to get some assistance with the padding on a section of my clients’ website. When the website is open at the max width, the text in the column doesn’t go from edge to edge. Is there anyway we can fix this code so that the body text fills the entire space regardless of what device they are on?

Template: Motion
https://copper-88-2022.myshopify.com/pages/the-science
Pass: Meashi

Any help is appreciated. Thank you so much!

This is PageFly - Free Landing Page Builder.

You can add this code into the theme.css file

media only screen and (max-width: 600px){
.template-page .rte-setting.text-spacing {
 width: unset !important; 
}}

Hope this can help you solve the issue

Best regards,

PageFly

Hello, thank you so much for your response. The code doesn’t work :disappointed_face:

The text does go edge to edge when the screen is at a smaller size but when its opened up the largest it still has quite a bit of padding.

Any other ideas? :slightly_smiling_face: I appreciate your time!

i can see it doesn’t go edge to edge because some of your styling from theme has blocked that

You can try this

media only screen and (max-width: 600px){
.template-page .rte-setting.text-spacing {
 width:700px !important; 
}}
1 Like

Thank you, this worked! I appreciate all your help.

Sorry, one last thing… While that did work. It changes the spacing on another part of the science page right under ‘Our Brand Promise’. Is there anyway we can target the code by section?

hi @sincerelyjoie sure to target the above section only, please use this code

media only screen and (max-width: 600px){
#shopify-section-template--15599183265951__1651177583213788be .template-page .rte-setting.text-spacing {
 width:700px !important; 
}}