You can modify the style of an element with JavaScript: document.querySelector("#about").style["background"] = "red"
-
-
@mathias@jsfordesigners been trying to figure out what was best practice regarding styles with JS. Thanks!Thanks. Twitter will use this to make your timeline better. UndoUndo
-
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.
JavaScript, HTML, CSS, HTTP, performance, security, Bash, Unicode, i18n, macOS.