0

I have a quick question, I'm wondering if it is possible to change the position value of a certain element in ONLY FireFox by adjusting the main CSS file?

andreas
  • 16,357
  • 12
  • 72
  • 76
  • Please clarify your specific problem or add additional details to highlight exactly what you need. As it's currently written, it’s hard to tell exactly what you're asking. – Paulie_D Oct 22 '16 at 19:47
  • Define Firefox. Is Palemoon Firefox? Is my own build compiled from unmodified source Firefox? – Oriol Oct 22 '16 at 19:50

1 Answers1

0

You can use @-moz-document to only target Firefox. Add it to your main.css to overwrite the existing rules.

@-moz-document url-prefix() {
    element {
        position: relative;
    }
}

See this question.

Community
  • 1
  • 1
andreas
  • 16,357
  • 12
  • 72
  • 76
  • Thank you, but I'm trying to use your code to target an id and it's not working. this is my code @-moz-document url-prefix() { #buttons-container { position: relative; top:206px; } } –  Oct 22 '16 at 19:44
  • 1
    Nevermind, got it. thanks alot. –  Oct 22 '16 at 19:47
  • You're welcome, glad I could help. – andreas Oct 22 '16 at 19:48