0

Look at this fiddle: http://jsfiddle.net/v9V3f/

I try to center placeholder in my input with such css rule:

input::-webkit-input-placeholder {
   text-align: center;
}

This css works correctly in Chrome but in Safari (Windows 7) input placeholder aligns to left. I tried doing things with relative and absolute positions, margins - nothing seems to work. So, how can I fix it?

Boris Zagoruiko
  • 12,705
  • 15
  • 47
  • 79

1 Answers1

0
::input-placeholder

is supported on by safari 5+, so depending on which version of safari you have it should work

also you can try

input[placeholder] 

^ works for text align in most browsers

nolawi
  • 4,439
  • 6
  • 22
  • 45