Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

how to get font size in javascript

const element = document.querySelector("#id");
const size = window.getComputedStyle(element).getPropertyValue("font-size");
 
PREVIOUS NEXT
Tagged: #font #size #javascript
ADD COMMENT
Topic
Name
1+8 =