79259375

Date: 2024-12-06 21:07:27
Score: 1
Natty:
Report link

You can apply the same styling to the children of an HTML element by using the children property:

let elements = document.getElementsByClassName('gs-title');
  for (const element of elements) {
    element.style.fontSize = "24px";
      for (const child of element.children) {
        child.style.fontSize = "24px";
      }
  }
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Patrick Schlieker