Get width of a div in Dash application

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.

1 Like

Try using % or vw (viewport) widths instead - these will scale with the size of your window.

1 Like