Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

placeholder in search bar on samsung galaxy displays on wrong side

Tags:

html

css

cordova

i'm using this web editor example:

http://jsfiddle.net/MW7q6/

which enables you to see the input tag styled

text-align: right;

on iPhones and nexus the placeholder is displayed correctly on the right side, but on all samsung galaxy devices it's on the left side.

somebody know the reason? or how to solve this?

like image 789
ben ezra Avatar asked Jan 19 '14 15:01

ben ezra


1 Answers

Try adding

direction: rtl;

to the input tag

and

::-webkit-input-placeholder {
     direction: rtl;
}

anywhere in the css

like image 104
Sgoldy Avatar answered Nov 15 '22 06:11

Sgoldy