set span to display inline block in case there's no text available, otherwise it shows a blank space