Changed to use span classes for warnings

Updated to use span classes as requested by Fleure.