Support » Fixing WordPress » 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;”>



Viewing 2 replies - 1 through 2 (of 2 total)
  • 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:

    There are many scripts available out there to help you retreive a User-Agent string. Then use it’s output.

    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.