How to center the email and password text in the log in fields on dawn

Hey,

In the fields where the customer types their email and password, i’ve made the text type in centered, but the dummy text for email and password is still left aligned

how do i fix this?

Hey @georgec6829 ,

Can I have the link to your store?

Hey,

password is: niglam

thanks!

Hey,

password is: niglam

thanks you!

Hey @georgec6829 ,
Go to your theme’s “Edit Code” Option, then in the search bar type “theme.liquid”
Below the tag “” tag paste the following. Screenshot attached for reference

To align the dummy text use this,

#customer_login .field input+label {
    width: 100%;
}

If you want to center the dummy text and “Forgot your password message”, use this

#customer_login .field input+label,
#customer_login > a{
    width: 100%;
}

Screenshot is for reference only, the correct code to paste is the one shown above.

Hello @georgec6829 :waving_hand:

In Shopify Admin, you can go to Edit theme code, open file base.css and add this code at the bottom

#customer_login label {
    width: 100%;
}

The result

Hope that helps!