Lnoon18 Posted July 11 Posted July 11 I have been trying to update my newsletter block styling on the website however the code I have is either outdated or not working - although I have used it on another SS site before. I want to make the input cells/blocks an underline design as per the example attached.Any help would be appreciated! Β
sorca_marian Posted July 11 Posted July 11 You might be using older CSS selectors for a previous HTML structure. Do you know how to inspect the elements through developer tools? Β π¨βπ§π¨βπ»Β Squarespace plugins πββοΈΒ Squarespace Custom Web Development & Design Services π Β Todoist alternative | Increase your ProductivityΒ πΉΒ Squarespace Tutorials for free - YouTubeπΉΒ π―π I have worked on over 300 Squarespace sites with custom code for over 9 years πββοΈΒ Let's connect on LinkedIn Β
Lnoon18 Posted July 11 Author Posted July 11 Hey @sorca_marian, no I don't know how to do that! Do you have any updated code? the one I have is actually so long it would take forever to inspect all of it
sorca_marian Posted July 11 Posted July 11 Can you send a link to a site you want this styling? Are you aware of the new styling options for forms through SQSP Editor? Β ? Β π¨βπ§π¨βπ»Β Squarespace plugins πββοΈΒ Squarespace Custom Web Development & Design Services π Β Todoist alternative | Increase your ProductivityΒ πΉΒ Squarespace Tutorials for free - YouTubeπΉΒ π―π I have worked on over 300 Squarespace sites with custom code for over 9 years πββοΈΒ Let's connect on LinkedIn Β
Lnoon18 Posted July 11 Author Posted July 11 @sorca_marianΒ I can't see those options for the newsletter form? see attached. https://thechristmasportal.com.au/Β is the site - you can see the newsletter sign up at the bottomΒ
sorca_marian Posted July 11 Posted July 11 Is this the desired result? Β input[name="email"] { background : transparent!important; color : rgb(237, 191, 42); text-align : center; } input[name="email"]::placeholder { color : rgb(237, 191, 42)!important; text-align : center; } input[name="email"] { border-bottom : 1px solid rgb(237, 191, 42)!important; } Β Β π¨βπ§π¨βπ»Β Squarespace plugins πββοΈΒ Squarespace Custom Web Development & Design Services π Β Todoist alternative | Increase your ProductivityΒ πΉΒ Squarespace Tutorials for free - YouTubeπΉΒ π―π I have worked on over 300 Squarespace sites with custom code for over 9 years πββοΈΒ Let's connect on LinkedIn Β
Lnoon18 Posted July 11 Author Posted July 11 sorry @sorca_marianΒ I added a couple of lines to alter the text styling to make it uppercase + added text spacing. The text spacing has applied however the uppercase hasn't. Would you know why?: input[name="email"] { Β Β background : transparent!important; Β Β color : rgb(237, 191, 42); Β Β text-align : center; } input[name="email"]::placeholder { Β Β color : rgb(237, 191, 42)!important; Β Β text-align : center; Β Β font-style: uppercase; Β Β letter-spacing:3px; } input[name="email"] { Β Β border-bottom : 1px solid rgb(237, 191, 42)!important; }
sorca_marian Posted July 11 Posted July 11 (edited) One rule you added is not valid.Β I updated the code with uppercase and letter spacing. Don't forget to mark my answer as the solution π input[name="email"] { background : transparent!important; color : rgb(237, 191, 42); text-align : center; } input[name="email"]::placeholder { color : rgb(237, 191, 42)!important; text-align : center; text-transform : uppercase; letter-spacing:3px; } input[name="email"] { border-bottom : 1px solid rgb(237, 191, 42)!important; } Β Edited July 11 by sorca_marian Β π¨βπ§π¨βπ»Β Squarespace plugins πββοΈΒ Squarespace Custom Web Development & Design Services π Β Todoist alternative | Increase your ProductivityΒ πΉΒ Squarespace Tutorials for free - YouTubeπΉΒ π―π I have worked on over 300 Squarespace sites with custom code for over 9 years πββοΈΒ Let's connect on LinkedIn Β
Lnoon18 Posted July 11 Author Posted July 11 (edited) Thank you @sorca_marian! I just noticed something (so sorry to bother you again!) The field has a blue border around it? Its faint but its obvious on a bright screen Edited July 11 by Lnoon18
sorca_marian Posted July 11 Posted July 11 Is this on another page? Β π¨βπ§π¨βπ»Β Squarespace plugins πββοΈΒ Squarespace Custom Web Development & Design Services π Β Todoist alternative | Increase your ProductivityΒ πΉΒ Squarespace Tutorials for free - YouTubeπΉΒ π―π I have worked on over 300 Squarespace sites with custom code for over 9 years πββοΈΒ Let's connect on LinkedIn Β
Lnoon18 Posted July 11 Author Posted July 11 @sorca_marianΒ yes sorry it is. It's on an unpublished page I'm currently working on to replace to current live site landing page
Solution sorca_marian Posted July 11 Solution Posted July 11 Try this codeΒ input[name="email"] { background : transparent!important; color : rgb(237, 191, 42); text-align : center; border : none!important; border-bottom : 1px solid rgb(237, 191, 42)!important; } input[name="email"]::placeholder { color : rgb(237, 191, 42)!important; text-align : center; text-transform : uppercase; letter-spacing:3px; } Β Β π¨βπ§π¨βπ»Β Squarespace plugins πββοΈΒ Squarespace Custom Web Development & Design Services π Β Todoist alternative | Increase your ProductivityΒ πΉΒ Squarespace Tutorials for free - YouTubeπΉΒ π―π I have worked on over 300 Squarespace sites with custom code for over 9 years πββοΈΒ Let's connect on LinkedIn Β
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment