Jump to content

Need to put button *beside* form field and not under.

Recommended Posts

Site URL: https://sparrowstartup.com/home-1

When you go to my test page (https://sparrowstartup.com/home-1) you'll notice that the "LEARN MORE" button is under the box where I accept emails. Ideally, I want it on the right side for better viewing. And so it'll look like:

Quote

[enter your email] [[LEARN MORE]]

I've tried the CSS that goes like "Form flex" or something but then the field + button just merges together. I'm hoping there's a cleaner CSS fix. I've also tried this solution (https://stackoverflow.com/questions/56623577/change-width-of-html-form-using-css) but it doesn't work.

Would love to know your thoughts please! 🙂

Also, massive shoutout to @creedon who (in my humble opinion) has always been extremely helpful whenever I've made posts in the past. Is there a way to let the Squarespace admins know he's awesome? Please tell me and I'll send an email or something. Cheers guys!

Edited by Sparrow-Startup-Advisors
Link to comment
  • Replies 2
  • Views 379
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

Remove the spacer blocks to either side of the newsletter block. That is so the following code can work.

Add the following to Design > Custom CSS.

// uses LESS syntax

#block-yui_3_17_2_1_1656125389549_4829 {

  form {
  
    display : flex;
    gap : 1em;
    justify-content : center;
    
    }
    
  .field-list .title {
  
    width : 300px;
    
    }
    
  }

Let us know how it goes.

Find my contributions useful? Please like, upvote, mark my answer as the best ( solution ), and see my profile. Thanks for your support! I am a Squarespace ( and other technological things ) consultant open for new projects.

Link to comment
  • 3 weeks later...
On 6/25/2022 at 1:54 AM, creedon said:

Remove the spacer blocks to either side of the newsletter block. That is so the following code can work.

Add the following to Design > Custom CSS.

// uses LESS syntax

#block-yui_3_17_2_1_1656125389549_4829 {

  form {
  
    display : flex;
    gap : 1em;
    justify-content : center;
    
    }
    
  .field-list .title {
  
    width : 300px;
    
    }
    
  }

Let us know how it goes.

Hey @creedon, apologies for my late response. This didn't work - https://sparrowstartup.com/test

Thoughts? 😄

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.