Jump to content

Centering Newsletter Block "Email Address" Text

Recommended Posts

3 hours ago, Becca7890 said:

Add to Home > Design > Custom CSS

.newsletter-block .newsletter-form-field-element::placeholder {
    text-align: center;
}

 

Email me if you have need any help (free, of course.). Answer within 24 hours. 
Or send to forum message

How to: Setup Password & Share url Insert Custom CSS - Page Header - Upload Custom Font - Upload File - Find Block ID - Contact Customer Care

Link to comment
On 3/20/2020 at 4:11 AM, Becca7890 said:

Hi,

This didn't work. Any other ideas?

Thanks!

Try this code

.newsletter-block .newsletter-form-field-element {
    text-align: center;
}

 

Email me if you have need any help (free, of course.). Answer within 24 hours. 
Or send to forum message

How to: Setup Password & Share url Insert Custom CSS - Page Header - Upload Custom Font - Upload File - Find Block ID - Contact Customer Care

Link to comment
  • 3 months later...
On 7/21/2020 at 8:28 AM, Intentional-Nutrition said:

Hi @tuanphan, I'm also trying to do the same, however want to align the placeholder text to the left (see screenshot). 

I've tried your code above, changing the 'centre' to 'left', but it didn't work.

URL: www.intentionalnutrition.com.au

On 7/21/2020 at 8:29 AM, Intentional-Nutrition said:

Also, what is the code to change the colour of the font when someone is typing in their email address (it's currently black, but want it to match the lighter placeholder text colour). Thanks in advance!

Please help!

Add to Home > Design > Custom CSS

footer.sections .newsletter-block .newsletter-form-field-element {
    text-align: left !important;
    padding-left: 0 !important;
}

 

On 7/21/2020 at 8:29 AM, Intentional-Nutrition said:

Also, what is the code to change the colour of the font when someone is typing in their email address (it's currently black, but want it to match the lighter placeholder text colour). Thanks in advance!

Add to Home > Design > Custom CSS

/* footer email typing */
footer.sections .newsletter-block .newsletter-form-field-element:focus {
    color: white !important;
}

 

Email me if you have need any help (free, of course.). Answer within 24 hours. 
Or send to forum message

How to: Setup Password & Share url Insert Custom CSS - Page Header - Upload Custom Font - Upload File - Find Block ID - Contact Customer Care

Link to comment
  • 1 month later...

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.