Jump to content

7.1 Newsletter Block CSS Help - how to reduce size of email fill form and submit button

Recommended Posts

On 4/20/2020 at 6:57 AM, tuanphan said:

Add to Home > Design > Custom CSS

.sqs-block-newsletter .newsletter-form-field-element {
    padding-top: 10px !important;
    padding-bottom: 10px !important;
}
button.newsletter-form-button.sqs-system-button {
    padding-top: 10px !important;
    padding-bottom: 10px !important;
}

 

You are a Legend! Thanks so much!

Link to comment
  • 3 months later...

As usual @tuanphan is a living breathing Squarespace God Human! Been helping me for years. In scrolling through this feed and seeing all the "Hey Tuan!!" Seriously. Dude needs a Buy Me A Coffee or tip jar page!

My site is not live (so I cant share), only a holder. I normally use SquareKicker but cannot afford that right now. I used your very first code adjustment which helped reduce the overall size a lot (which has been whack for years on Squarespace). That code is:

.sqs-block-newsletter .newsletter-form-field-element {

    padding-top: 10px !important;

    padding-bottom: 10px !important;

}

button.newsletter-form-button.sqs-system-button {

    padding-top: 10px !important;

    padding-bottom: 10px !important;

}

 

Please note the pic below. The red lines show that I want it to line up more with the copy above it. I will get back on Squarekicker, but I need a temporary fix to resolve this issue and get it closer by further reduce field height and width, field font size, and the the overall width. Any help would be appreciated, Tuan. Thanks as always. 

 

 

Screenshot 2023-10-07 at 11.33.17 AM.png

Edited by BobInAustin
Link to comment
On 10/7/2023 at 11:45 PM, BobInAustin said:

As usual @tuanphan is a living breathing Squarespace God Human! Been helping me for years. In scrolling through this feed and seeing all the "Hey Tuan!!" Seriously. Dude needs a Buy Me A Coffee or tip jar page!

My site is not live (so I cant share), only a holder. I normally use SquareKicker but cannot afford that right now. I used your very first code adjustment which helped reduce the overall size a lot (which has been whack for years on Squarespace). That code is:

.sqs-block-newsletter .newsletter-form-field-element {

    padding-top: 10px !important;

    padding-bottom: 10px !important;

}

button.newsletter-form-button.sqs-system-button {

    padding-top: 10px !important;

    padding-bottom: 10px !important;

}

 

Please note the pic below. The red lines show that I want it to line up more with the copy above it. I will get back on Squarekicker, but I need a temporary fix to resolve this issue and get it closer by further reduce field height and width, field font size, and the the overall width. Any help would be appreciated, Tuan. Thanks as always. 

 

 

Screenshot 2023-10-07 at 11.33.17 AM.png

If you can share page url, we can help easier

If the site is trial/unpublished, you can follow this guide to share url

 

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
  • 4 weeks later...
On 11/9/2023 at 1:36 PM, jmerrill said:

@tuanphan I'm using the css you provided above to slim down the height of the newsletter input and button. Works great and it now looks like the image with the dark grey bg).

I'd like to be able to close the gap between the input and the button so it looks more like the image with the beige bg.

Appreciate your help!

Screenshot 2023-11-08 at 10.33.51 PM.png

Screenshot 2023-11-08 at 10.26.15 PM.png

Can you share link to page? I can check it again easier

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
  • 3 weeks later...
9 hours ago, jmerrill said:

@tuanphan Sorry for the delay. Yes, you can view the site (see footer) here:

URL: https://liftin.me/
PW: lifting

Add these code on Custom CSS panel in Website Utilities Website Tools > Custom CSS.

.fe-block-yui_3_17_2_1_1699493431125_40935 {
    .newsletter-form-body {
        display: flex !important;
    }
    .newsletter-form-field-wrapper, .newsletter-form-button-wrapper {
        padding: 0 !important;
    }
    .newsletter-form-button {
        border-radius: 0 !important;
        height: 100% !important;
    }
    .newsletter-block .newsletter-form-field-wrapper {
        min-width: 1px !important;
    }
}

 

Screenshot_479.png

If my comments are useful, please like and mark my solution as answer. It will encourage me. Thanks

MD Rofik
Website Designer and Digital Marketer

Am I helpful? Want to offer me a coffee?
Send me a message if needed any help. I'll try to reply as soon as possible.


 

Link to comment

Thank you! @Web_Solutions 
This gives me the basics of what I'm looking for. I'd also like to achieve two things:

1. Have the newsletter (input and button) expand to the full width of the newsletter block. Right now it's fixed to a certain width no matter how far I expand the block. I'd like it to extend to the center of the screen.

2. Reduce the height of the input and button.

Thanks for your help.

Link to comment
  • 3 months later...
On 3/15/2024 at 7:57 PM, praustralia said:

Hi There,

 

I am trying to use the code above however its not working. Can someone point me in the right direction? 

 

image.thumb.png.72f7a4ff866452cc41193db51231e682.png

To add code to Code Block, you need to wrap code in style tag

<style>
  paste your current code here
</style>

 

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.