Hi, guys!
You may find my question a bit odd, but I really need to know how to get a current width of a div and pass it to ‘width’ variable. So, when the browser window is resizing, the ‘width’ variable is updating.
Thanx a lot for any help.
Hi, guys!
You may find my question a bit odd, but I really need to know how to get a current width of a div and pass it to ‘width’ variable. So, when the browser window is resizing, the ‘width’ variable is updating.
Thanx a lot for any help.
Try using %
or vw
(viewport) widths instead - these will scale with the size of your window.