Jump to content

Newsletter block resize smaller

Recommended Posts

I am trying to resize the padding on a specific newsletter block (not site wide). I’ve tried different padding sizes but I can’t get it right.

https://www.lucasano.com/test

On the this test page, you will see I am trying to fit it over the dark blue shape on the right.

Here is the code I am currently using:

/*
===================================
TEST PAGE: NEWSLETTER STYLE
===================================
*/
#block-yui_3_17_2_1_1716234526589_4019 .newsletter-form-header-description {
  margin-top: 0; 
  margin-bottom: -25px; 
}

#block-yui_3_17_2_1_1716234526589_4019 .newsletter-form-button {
  height: 20px;
  margin-top: -20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

 

Link to comment
  • Replies 4
  • Views 1.1k
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

Posted Images

Yes, basically want it centered to the blue shape behind it, so whether that's reducing more padding on right side or left. Currently I can't reduce it any more. I had tried some padding CSS (set at 0) but it still didn't achieve the width I was looking for to fit center inside the blue box.

Link to comment

This is Shape Block

image.png.e8ca445f368fe6360962928543788ad6.png

This is Form Block, it has a space on left

image.png.d48e22decfde99976caf29fdc25eb482.png

You try drag Form Block to make width of Form equal width of Shape Block

Or use this code to increase Shape Block background to left a bit.

div.fe-block-yui_3_17_2_1_1716234526589_4019 {
    background-color: #323843
}

image.png.064a2c70c30ae752a83274b95f183ac5.png

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.