Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums JavaScript userAgent problem with Chrome Win

  • This topic is empty.
Viewing 1 post (of 1 total)
  • Author
    Posts
  • #34674
    lobino
    Member

    Hi,
    I have had some problem with css, solve with this js code:

     if (navigator.userAgent.indexOf("Win") != -1) {
    $(".colonnadx_rassegna").css("margin-left", "0");
    }

    });

    But I’ve got a problem in Chrome only in Win, how can I exclude only Chrome on Windows?
    Or how can I add a condition like “if win and chrome….. .css(“margin-left”, “120”)”?

    THANK YOU!!

Viewing 1 post (of 1 total)
  • The forum ‘JavaScript’ is closed to new topics and replies.