fix header display inline-block issue and resolve div width to center text