-1

I am trying to make work background position in Firefox, but no success. In google chrome it works. Here is my css that works in google, but Firefox doesnt accept background-position-y: 37px;

{
padding-top: 14px;
height: 50px;
background: url('image.png') repeat-x;
background-position-y: 37px;
text-align: center;
}
Chymmi
  • 151
  • 1
  • 9
  • possible duplicate of [backgroundPositionX not working on Firefox](http://stackoverflow.com/questions/13948617/backgroundpositionx-not-working-on-firefox) – Andy Feb 04 '13 at 16:08

2 Answers2

3

There is no such thing like cross-browser background-position-y. It simply doesn't work everywhere and therefore shouldn't be used. You have to set both parameters in background-position.

Please have a look at this thread: background-position and links I referred to in my answer

Community
  • 1
  • 1
Moseleyi
  • 2,585
  • 1
  • 24
  • 46
1

Firefox does not know a background-position-y property.

Try to use the regular background-position with two arguments:

background-position: 0% 37px;
Sirko
  • 72,589
  • 19
  • 149
  • 183