Get your own website Result Size: 625 x 565
x
 
<!DOCTYPE html>
<html>
<body>
<h1>Change font-size-adjust with JavaScript</h1>
<p>Click the "Try it" button to set the font-size-adjust property of the second DIV element to "0.58", which is the aspect value of the font used in the first DIV element (Verdana):</p>
<button onclick="myFunction()">Try it</button>
<div style="font-family:verdana">
  <p>You control the font size better with the font-size-adjust property.</p>
</div>
<div id="myDIV">
  <p>You control the font size better with the font-size-adjust property.</p>
</div>
<script>
function myFunction() {
  document.getElementById("myDIV").style.fontSizeAdjust = "0.58";
}
</script>
<p><b>Note:</b> The font-size-adjust property is only supported in Firefox.</p>
</body>
<!-- Mirrored from www.w3schools.com/cssref/tryit.php?filename=trycss3_js_font-size-adjust by HTTrack Website Copier/3.x [XR&CO'2014], Wed, 21 Dec 2022 17:36:39 GMT -->
</html>