Title: Add code for Firefox only?
Last modified: August 20, 2016

---

# Add code for Firefox only?

 *  [VDiaz](https://wordpress.org/support/users/vdiaz/)
 * (@vdiaz)
 * [13 years, 10 months ago](https://wordpress.org/support/topic/add-code-for-firefox-only/)
 * I need to add some code for the header/slider to function a certain way but in
   Firefox only.
 * URL – keithfabryretail.com
 * When I add:
 *     ```
       #mainslidercontainer {
       float: left;
       margin: 110px 10px 10px;
       overflow:hidden;
       }
       ```
   
 * to the css, it makes the header/slider show up in firefox (the issue i was having).
 * But now that i added that code and its working in firefox, it’s not showing up
   in chrome at all.
 * So… is there a way that i can add that code but specify that only firefox uses
   it?
 * Thanks in advance!

Viewing 4 replies - 1 through 4 (of 4 total)

 *  [Andrew Nevins](https://wordpress.org/support/users/anevins/)
 * (@anevins)
 * WCLDN 2018 Contributor | Volunteer support
 * [13 years, 10 months ago](https://wordpress.org/support/topic/add-code-for-firefox-only/#post-2952963)
 *     ```
       @-moz-document url-prefix() {
           #mainslidercontainer {
               float: left;
               margin: 110px 10px 10px;
               overflow: hidden;
           }
       }
       ```
   
 *  Thread Starter [VDiaz](https://wordpress.org/support/users/vdiaz/)
 * (@vdiaz)
 * [13 years, 10 months ago](https://wordpress.org/support/topic/add-code-for-firefox-only/#post-2952965)
 * Wow…. thank you, thank you, thank you!
 *  Thread Starter [VDiaz](https://wordpress.org/support/users/vdiaz/)
 * (@vdiaz)
 * [13 years, 10 months ago](https://wordpress.org/support/topic/add-code-for-firefox-only/#post-2953142)
 * I copied over the original site with just some content updates but now i’m having
   the same issue with firefox not displaying the header/slider correctly (it’s 
   off to the right again)
 * The old url was keithfabryretail.com – the new one that has issues is [http://keithfabrystructurestudio.com/](http://keithfabrystructurestudio.com/)
 * I have the code in the css as stated above, but it’s not working on this site…
   why would that happen?
 *  Thread Starter [VDiaz](https://wordpress.org/support/users/vdiaz/)
 * (@vdiaz)
 * [13 years, 10 months ago](https://wordpress.org/support/topic/add-code-for-firefox-only/#post-2953143)
 * Played around a bit and was able to fix it. Here’s the fix if someone needs it
   in the future:
 *     ```
       @-moz-document url-prefix() {
           #coin-slider-homepage.coin-slider {
               float: left;
               margin: 0px 10px 10px;
               overflow: hidden;
           }
       }
       ```
   

Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘Add code for Firefox only?’ is closed to new replies.

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 4 replies
 * 2 participants
 * Last reply from: [VDiaz](https://wordpress.org/support/users/vdiaz/)
 * Last activity: [13 years, 10 months ago](https://wordpress.org/support/topic/add-code-for-firefox-only/#post-2953143)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
