DEV Community 👩‍💻👨‍💻

Discussion on: a classic watch , width HTML CSS JS

Collapse
 
lukeshiru profile image
Luke Shiru

I suggest you use CSS custom properties instead of changing styles directly. This way all the calculations stay in CSS, and you can even use the same values for other stuff inside the same element:

Cheers!

Collapse
 
kiumad profile image
Mohammad Mirfatemi Author

Thank you for taking the time to fix it
It was very informative for me
Cheers!