Exactly like it sounds..
Is there some magical and easy way to say:
if (user agent is iOS) {
if (browserRatio >=1.5) {
$contai
In order for this to work you are going to need to define browserWidth, but yes it will work. Here I targeted iPad only.
$(window).load(function(){
var browserWidth = $(window).width();
if (navigator.userAgent.match(/(iPad)/)) {
if (browserWidth == 768) {
$('.sectionI').css({'margin-left': '30px'});
} else if (browserWidth == 1024) {
$('.sectionI').css({'margin-left': '0px'});
}
}
});