Forums

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

Home Forums CSS Chrome specific? Re: Chrome specific?

#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.