Currently, I am able to modify the font size by accessing the first style sheet using the following code:
document.styleSheets[0].cssRules[0].style.fontSize = "16";
Here is the CSS snippet:
h1 {font-size: 12}
.someClass {}
As the CSS file grows larger, it becomes challenging to keep track of the index numbers of rules. Is there a way to select rules by class name or ID instead?