Forums

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

Home Forums CSS Chrome specific?

  • This topic is empty.
Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #34853
    XaviJr
    Participant

    Is it possible to make a rule just for chrome?

    I have this textarea box with a border and box-shadow and appears in this browser with more 2px so I need to correct that.

    #89435
    TheDoc
    Member

    I used some jQuery for this recently.

    $(document).ready(function(){

    var Chrome = false;

    if (navigator.userAgent.toLowerCase().indexOf('chrome') > -1) {
    Chrome = true;
    $('body').addClass('chrome');
    }

    });

    This will add the class of ‘chrome’ to your body tag.

    #89440
    standuncan
    Member

    I seen both of these ways in a blog post, (never tried either).



    @media not all and (-webkit-min-device-pixel-ratio:0)
    {
    #example
    {
    width: 200px;
    }
    }

    and





Viewing 3 posts - 1 through 3 (of 3 total)
  • The forum ‘CSS’ is closed to new topics and replies.