Dont resize content div with javascript but use css box-sizing to do it

I've ported this fix from the navigation branch since that branch seems dead and it still bugs me.

Basically what it does is that it adjusts the content width always to 100% with css instead of JS.

The JS solution produced display bugs and crashed certain browsers on resize, like opera.