How to change CSS property before element is created?

I have to modify the div's css before the `window.onload`, and `body.onload`.