I have a div with border-right attribute. When my site is reduced, the div size will adapt, but the border will still remain the same size. This causes the div to move beyond its parent. Is there a way to determine the zoom level? So I can change the size depending on the scaling. And if so, how?
Thank you in advance
var zoom = window.outerWidth / window.document.documentElement.clientWidth
Since yours border-widthis equal 1px, you cannot shrink below that, so I would suggest the following:
border-width
1px
0px
100%