DRYing up header. Removing spans and replacing with floats. refactoring loop