Window resizing issues

Hi everyone
I’m trying to create a simple example of resize a window using the resize’s handler but not sure what i’am doing wrong. My snippet contain the most simple example


you’re missing just some CSS:

  html, body{

Here’s an example: Code Snippet

Our article about Dynamic Sizing might be helpful to understand it better