Title: Output HTML-code only if Firefox
Last modified: August 20, 2016

---

# Output HTML-code only if Firefox

 *  [Addeanton](https://wordpress.org/support/users/addeanton/)
 * (@addeanton)
 * [13 years, 10 months ago](https://wordpress.org/support/topic/output-html-code-only-if-firefox/)
 * Hi, I am having compability issues between IE and Firefox.
 * I would like some PHP-code to solve my problem.
 * if Mozilla Firefox is used
    {
 * <div style=”position:relative; width:980px; margin-top:350px;”>
 * </div>
 * }

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

 *  [Johnb81](https://wordpress.org/support/users/johnb81/)
 * (@johnb81)
 * [13 years, 10 months ago](https://wordpress.org/support/topic/output-html-code-only-if-firefox/#post-2966726)
 * What you need to do is a little bit more complicated than that. You have to check
   the User-Agent string of a browser and match that.
 * More information about User-Agent string: [http://en.wikipedia.org/wiki/User_agent](http://en.wikipedia.org/wiki/User_agent)
 * There are many scripts available out there to help you retreive a User-Agent 
   string. Then use it’s output.
 *  Thread Starter [Addeanton](https://wordpress.org/support/users/addeanton/)
 * (@addeanton)
 * [13 years, 10 months ago](https://wordpress.org/support/topic/output-html-code-only-if-firefox/#post-2966739)
 * Actually believe that it’s hard to find a good user-agent code, but I will keep
   looking

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

The topic ‘Output HTML-code only if Firefox’ is closed to new replies.

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 2 replies
 * 2 participants
 * Last reply from: [Addeanton](https://wordpress.org/support/users/addeanton/)
 * Last activity: [13 years, 10 months ago](https://wordpress.org/support/topic/output-html-code-only-if-firefox/#post-2966739)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
