I have a div with border-right property. When my site is zoomed out the div size will adapt but the border will still stay the same size. This results in the div moving outside its parent. Is there a way to detect the zoom level? So that I could change size depending on the zoom. And if so, then how?
Thanks in advance
var zoom = window.outerWidth / window.document.documentElement.clientWidth
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With