Jump to content

Reduce gap and responsive Newsletter

Recommended Posts

  • Replies 5
  • Views 236
  • Created
  • Last Reply

Top Posters In This Topic

@AnySavaria2021 Hi! You can add this code under Website > Pages > Website Tools > Custom CSS to reduce the gap between the newsletter fields.

.sqs-block-newsletter .newsletter-form-field-element {
  width: unset !important;
  max-width: 11rem !important;
}

.newsletter-form-field-wrapper.field.first-name, .newsletter-form-field-wrapper.field.last-name, .newsletter-block .newsletter-form-field-wrapper.email {
    min-width: 11rem !important;
}

Please note I didn't add the code for the mobile view because having all the newsletter form fields in a single line, like on the desktop, would make the fields too small, which isn't ideal for user experience.

If my comments were useful, please like or mark my solution as answer so others can scroll to it quickly. 

Sam
Web Developer & Digital Designer

 Did you find my contribution helpful? Buy me a coffee?

Link to comment

@AnySavaria2021 You can try this CSS code

@media screen and (max-width:767px) {
div#block-yui_3_17_2_1_1724696124682_47765 .first-name, div#block-yui_3_17_2_1_1724696124682_47765 .last-name {
    display: none;
}
}

 

Email me if you have need any help (free, of course.). Answer within 24 hours. 
Or send to forum message

Contact Customer Care - Learn CSS - Buy me a coffee (thank you!)

Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment


×
×
  • Create New...

Squarespace Webinars

Free online sessions where you’ll learn the basics and refine your Squarespace skills.

Hire a Designer

Stand out online with the help of an experienced designer or developer.