How I manage to StackOverflow responsive font-size reading about 5 samples with …

goodmuyisgoodmuyis Posts: 112
edited March 2019 in Chats

How I manage to StackOverflow responsive font-size reading about 5 samples with me input of course

$(window).resize(function() {
    var fontSize = $(window).width()/50 * 1.5;
    var boxW = $('.slider-content').width();
    if( boxW < 767){
        $('.slider-content > h5').css('font-size', fontSize + 5);
        $('.slider-content > h3').css('font-size', fontSize +10);
        $('.slider-content > p').css('font-size', fontSize + 2);
    }
});

Comments

Sign In or Register to comment.