modified css and window resize event to implement fluid layout