Redundant CSS deleted, code modified to work in IE8