how can active text-align: right;
only for placeholder?
<input type="text" name="airline_search" style="direction: ltr; border: none;" placeholder="ارلاین">
i want use of direction: ltr;
for text(that typed to inpute), and text-align: right;
for placeholder.
Select the text you want to modify. Select one of the four alignment options in the Paragraph group. The alignment commands align the text within the placeholder or text box it is in, not across the slide.
Change Input Placeholder Text with CSS You can use the ::placeholder pseudo-element to change the styles of the placeholder text, which includes the ability to change the background.
Just add padding to the input like this: . tbsearchbar { padding-top: 10px; color: red; //To add some color. }
/* webkit solution */ ::-webkit-input-placeholder { text-align:right; } /* mozilla solution */ input:-moz-placeholder { text-align:right; }
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With