using this in jquery css
<p>I'm trying to change the css of all divs with the class tab to the parent's width divided by the square root of the sibling tabs. I'm stuck because this doesn't work when selecting all tabs with jQuery. How am I supposed to solve this?
Here's the code:</p>

<pre><code>    function remodule(){
    $(".tab").css({
            "background-color":"hsl("+"100"+","+"50%"+","+"50%"+")",
            "position":"relative",
            "max-width": ($(this).parent.width -     15)/Math.sqrt($(this).prevAll.length),
            "max-height": ($(this).parent.height - 15)/Math.sqrt($(this).prevAll.length),
            "padding":"7px"
        })
}
</code></pre>

<p>This has proven hard to google.</p>