fixes for IE

a couple of fixes for internet explorer, mostly to do with the pure grid
layout.