Resizing font based on screen width
<p>Can someone help me with JavaScript code that resizes a font in a div if the screen width is lower than 1100px </p>

<pre><code>if (window.screen.width &lt;= 1100) {
  var item = document.getElementById("div1");
  item.style.fontSize = "25px";
  item.innerHTML = "String";
}
</code></pre>

<p>This is what I have so far. Can someone help me with what to do next?</p>
