Replacing div with span tags in inline elements