Fix for max-height and responsive styling

Update on browser resize

When resizing the browser, the max-height should also be set when not
using percentage mode, this to cooperate with responsive design of a
website.
Fixing alignment

Update on browser resize

Fixing wrong alignment.
Fixing alignment

Update on browser resize.

Updating alignment.
Merge pull request #161 from ReinoutW/Fix-Window-Resize

Fix window resize