@sivakumars
Posted
Hi, Risquat.
To answer your question on how to center the placeholder text and right-align the input text, please consider using input::placeholder
.
The ::placeholder
pseudo element targets only the placeholder text. You could use text-align : right
for the input text.
For that particular custom input box if you are targeting by tag, the code might look like the following.
input::placeholder{
text-align: center;
}
input{
text:align: right;
}
I hope this helps.
Marked as helpful