Jump to content

Newsletter block form field width in mobile view

Recommended Posts

Posted
3 hours ago, Henil said:

I'm trying to fix email field width 100% same as button but I can't  find solution can you please help me to fix it.
image.png.2113d44b1c3a6b35c67e734c49dbcdd4.png

Can you share your site with the protected password so we can take a look?

BeyondSpace - Squarespace Website Developer

🖼️ Lightbox Studio (Pinch/Zoom images, videos - PDFs Lightbox - ...) </>  🗓️ Delivery Date Picker (Date picker form field)
Gallery block 7.1 workaround </> 🤖 Ask me anything

Posted
1 hour ago, Henil said:

Site Link: https://amphibian-hexagon-l9l6.squarespace.com/
The passworkd is: Adrgvk12@9&

Try in Home > Design > Custom Css

@media only screen and (max-width: 767px) {
  .newsletter-block .newsletter-form-fields-wrapper, .newsletter-block .newsletter-form-field-wrapper {
    width: 100%;
  }
}

Let me know how it works on your site

Support me by pressing 👍 if this useful for you

BeyondSpace - Squarespace Website Developer

🖼️ Lightbox Studio (Pinch/Zoom images, videos - PDFs Lightbox - ...) </>  🗓️ Delivery Date Picker (Date picker form field)
Gallery block 7.1 workaround </> 🤖 Ask me anything

Posted
15 minutes ago, bangank36 said:

Try in Home > Design > Custom Css

@media only screen and (max-width: 767px) {
  .newsletter-block .newsletter-form-fields-wrapper, .newsletter-block .newsletter-form-field-wrapper {
    width: 100%;
  }
}

Let me know how it works on your site

Support me by pressing 👍 if this useful for you

It's working perfectly, Thanks!

One other things similar to this is I want to set text background within the width of the text. It's for the message of submission of newsletter. Can you help me for the same?
image.thumb.png.99aef7b49cbbf9ad59af03bb7285021d.png

Posted
2 hours ago, Henil said:

It's working perfectly, Thanks!

One other things similar to this is I want to set text background within the width of the text. It's for the message of submission of newsletter. Can you help me for the same?
image.thumb.png.99aef7b49cbbf9ad59af03bb7285021d.png

To set background of submission, kindly try

.form-submission-text {
  background: red;
}

 

BeyondSpace - Squarespace Website Developer

🖼️ Lightbox Studio (Pinch/Zoom images, videos - PDFs Lightbox - ...) </>  🗓️ Delivery Date Picker (Date picker form field)
Gallery block 7.1 workaround </> 🤖 Ask me anything

Posted
1 minute ago, bangank36 said:

To set background of submission, kindly try

.form-submission-text {
  background: red;
}

 

Hey, I've already set it to purple if you can see. I'm trying to adjust it within the test but it's work in full width 
 

Posted
2 hours ago, Henil said:

Hey, I've already set it to purple if you can see. I'm trying to adjust it within the test but it's work in full width 
 

Do you mean set color for text?

BeyondSpace - Squarespace Website Developer

🖼️ Lightbox Studio (Pinch/Zoom images, videos - PDFs Lightbox - ...) </>  🗓️ Delivery Date Picker (Date picker form field)
Gallery block 7.1 workaround </> 🤖 Ask me anything

Posted
16 hours ago, bangank36 said:

Do you mean set color for text?

No. I've Purple background color to the text. Now if you can see there is an extra space let-right of the text. now what I want is Remove that space and keep background color as width of the text. i.e See below image.
image.png.fb1012f60f553326f372b27e5345005c.png

Posted
On 1/1/2022 at 12:52 PM, Henil said:

No. I've Purple background color to the text. Now if you can see there is an extra space let-right of the text. now what I want is Remove that space and keep background color as width of the text. i.e See below image.
image.png.fb1012f60f553326f372b27e5345005c.png

Add this CSS

.form-submission-text {
    padding-left: 0 !important;
    padding-right: 0 !important;
    display: inline-block;
}

 

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!)

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.