Add padding around rendered examples.

+ some fixes to layout
+ window resize event