Jump to content
Search In
  • More options...
Find results that contain...
Find results in...
Advanced Search
  • 0
Becca7890

Centering Newsletter Block "Email Address" Text

Question

Hi,

I'm trying to center the text in the newsletter sign up text box. How can I do this? Please see the attached screenshot for the exact area.

 

Thanks!

center text in box.png

Share this post


Link to post

9 answers to this question

Recommended Posts

  • 0

Can you share link to your site? Some CSS can solve


You can send your question to my email to get faster answer. / How to Setup Password & Share URL 

-- I'm Tuan. I work for a non-profit project (build free libraries). I check the forum once or twice a day to help out the community. If you don't see me answering your question, you can send it to the email above. There are so many questions every day so I can't answer them all at once, I will try to answer them in the next few days.

Share this post


Link to post
  • 0
3 hours ago, Becca7890 said:

Add to Home > Design > Custom CSS

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

 


You can send your question to my email to get faster answer. / How to Setup Password & Share URL 

-- I'm Tuan. I work for a non-profit project (build free libraries). I check the forum once or twice a day to help out the community. If you don't see me answering your question, you can send it to the email above. There are so many questions every day so I can't answer them all at once, I will try to answer them in the next few days.

Share this post


Link to post
  • 0
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;
}

 


You can send your question to my email to get faster answer. / How to Setup Password & Share URL 

-- I'm Tuan. I work for a non-profit project (build free libraries). I check the forum once or twice a day to help out the community. If you don't see me answering your question, you can send it to the email above. There are so many questions every day so I can't answer them all at once, I will try to answer them in the next few days.

Share this post


Link to post
  • 0
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;
}

 


You can send your question to my email to get faster answer. / How to Setup Password & Share URL 

-- I'm Tuan. I work for a non-profit project (build free libraries). I check the forum once or twice a day to help out the community. If you don't see me answering your question, you can send it to the email above. There are so many questions every day so I can't answer them all at once, I will try to answer them in the next few days.

Share this post


Link to post

Create an account or sign in to comment

You need to be a member in order to leave a comment


×
×
  • Create New...