Stretching containers in the email sign up section

Topic summary

A user encountered a layout issue in their Shopify store’s email sign-up section where input containers weren’t extending to match the text width on screens between 560px and 749px wide. The containers displayed correctly at 750px+ but appeared misaligned on smaller viewports.

Resolution:
A CSS solution was provided targeting the specific viewport range:

  • Add custom CSS via Shopify Admin > Online Store > Theme > Customize > Theme Settings > Custom CSS
  • The code removes max-width constraints on the newsletter form containers using media queries for screens under 749px
  • Targets specific IDs: #contact_form, #ContactFooter, and their child elements

Outcome:
The solution successfully resolved the alignment issue, making the containers span the full width to match the text. The user confirmed the fix worked.

Note: The thread was initially posted as a duplicate, which was pointed out by another community member.

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

Hey, how can I extend the containers so that they go all the way to the end of the text? From a width of 750+px, it works normally, so I need to fix it from a width 560px to 749px so that the containers are the same width as the text.
See the image below:

Here’s my store: https://1049xn-ya.myshopify.com/
(Just scroll all the way down, there is the email sign-up section.)

Thanks,
Tim

Don’t make duplicates

https://community.shopify.com/c/shopify-design/how-to-stretch-containers-in-the-email-sign-up-section/td-p/2926642

Which is duplicate of a

https://community.shopify.com/c/shopify-design/how-to-stretch-containers-in-the-email-sign-up-section/m-p/2926557#M767630

Don’t try to monopolize attention wait for contribution or make better posts.

1 Like

Oh sorry, didn’t know that

Hi @CreatorTim

To complete your requests, please follow these steps:

  1. Go to Shopify Admin > Online Store > Theme > Customize > Theme Settings > Custom CSS https://prnt.sc/i8ljAMlHJUKl
  2. Paste the code provided into the Custom CSS section.
@media screen and (max-width: 749px){
#contact_form, #ContactFooter, #ContactFooter > .newsletter-form__field-wrapper, #contact_form > .newsletter-form__field-wrapper {
    max-width: unset !important;
}
}

Here is the result:

I hope this helps

Best,

Daisy

1 Like

Thanks man!