Skip to content Skip to sidebar Skip to footer

Resetting Element CSS Attributes On Container Resize Event (onresize)

I have a function in the onresize event of a wrapper div to resize an element. That function isn't called. Is the onresize event not available for divs? Here is the HTML.

Solution 1:

The onresize event occurs when a window or frame is resized.

So, it seems it isn't supported for div

http://www.w3schools.com/jsref/event_onresize.asp

You can use jquery plugin http://benalman.com/projects/jquery-resize-plugin/ An internal polling loop is started which periodically checks for element size changes and triggers the event when appropriate


Post a Comment for "Resetting Element CSS Attributes On Container Resize Event (onresize)"