Sent on Jun 27, 2018

How to get CSS values in JavaScript

Sometimes you need to control your CSS values with JavaScript. But how do you get CSS values in JavaScript?

Turns out, there are two possible ways, depending on whether you’re trying to get inline styles or computed styles.

https://zellwk.com/blog/css-values-in-js

Enjoy!

Stay awesome,
Zell

P.S. Enrollment for Learn JavaScript begins next week. I’ll share more info on Monday. Can’t wait to put it into your hands 😁.