Welcome to Code Forum!

Join a community that supports you and your coding journey from day one. We strive to be a friendly, supportive community that empowers everyone to be better developers. By registering with us, you'll be able to discuss, share and private message with other members of our community.

SignUp Now!
  • Guest, before posting your code please take these rules into consideration:
    • It is required to use our BBCode feature to display your code. While within the editor click < / > or >_ and place your code within the BB Code prompt. This helps others with finding a solution by making it easier to read and easier to copy.
    • You can also use markdown to share your code. When using markdown your code will be automatically converted to BBCode. For help with markdown check out the markdown guide.
    • Don't share a wall of code. All we want is the problem area, the code related to your issue.

    GIF shows where to locate </> in the thread and or post editor toolbar.
    To learn more about how to use our BBCode feature, review our "How to post your code into threads" here.

    Thank you, Code Forum.

CSS inline newsletter signup form on squarespace - CSS nightmare

kevindougans

New Coder
I'm trying to make a form all in one line instead of over multiple lines/height.

It can be seen on https://grapefruit-crocodile-hdl3.squarespace.com/ (pwd: contagency)

It's supposed to look the attached image, any pointers appreciated.

I've got this far, so far:
CSS:
form {
  display: flex;
}

.form-item.field.email, .form-item.field.select, .form-button-wrapper.field.submit {
 display: inline-block;
 min-width: 30.8%;
}

.form-wrapper {
opacity: 0.6;
background-color: #000000;
  width: 100%;
}

.form-wrapper .field-list .field  {
  background-color: #ccc;
  border: 1px solid #000000;

}
 

Attachments

  • Screen Shot 2022-02-18 at 19.31.27.jpg
    Screen Shot 2022-02-18 at 19.31.27.jpg
    177.8 KB · Views: 4
I'm trying to make a form all in one line instead of over multiple lines/height.

It can be seen on https://grapefruit-crocodile-hdl3.squarespace.com/ (pwd: contagency)

It's supposed to look the attached image, any pointers appreciated.
A form all in one line ? I can't for the life of me visualize that...
In any case the attached image doesn't look like it might qualify for that.
Could you be more specific on what you want to achieve, and where you got stuck ?
 
Screen_Shot_2022-02-18_at_19_31_27.jpg

The image attached above is what I want to achieve... what I have so far doesn't currently look like that on the link and password I provided. Squarespace doesn't allow you to create an all in one line form like I've circled and makes the submit button go on a new line so having to use CSS accomplish it but struggling.
 

Latest posts

Buy us a coffee!

Buy me a coffee.
Back
Top Bottom