const textBlock = 0.37645448; const pageWidth = $('.container').width(); const pageHeight = $('.container').height(); if (pageWidth <= 1920 && pageHeight <= 1080) { $('.container').css() } else { $('.container').css('max-width', '100%') }
Preview:
downloadDownload PNG
downloadDownload JPEG
downloadDownload SVG
Tip: You can change the style, width & colours of the snippet with the inspect tool before clicking Download!
Click to optimize width for Twitter