I'm trying to do simple jquery function:

```
<div id="container"><span>This is my text</span></div>

```

js code:

```
$(document).ready(function() {
    var fontSize = parseInt($("#container").width()/4)+"px";
    $("#container span").css('font-size', fontSize);
});

```

css code:

```
* {
    font-family:Myriad Pro;
}

#container {
    height:100px;
    width:98%;
    background-color:#eeeeee;
    padding:1%;
}

```

It works when I change resize window and refresh it, but I'd like it to work continously, so when I resize browser window font-size is changing dynamically.

<http://jsfiddle.net/8TrTU/1627/>