How to apply space in span element

html

Solution

margin is applied to block or inline-block elements

but not inline element like

span tags

try this

<span style='color:red;margin-right:1.25em; display:inline-block;'>&nbsp;</span>

Problem

I have been trying to apply one white space inside the span element, but couldn't able to do it. In my application i have the following two span elements. ``` <span style='color:red;margin-right:1.25em'>*</span> <span style='color:red;margin-right:1.25em'>&nbsp;</span> ``` Applied these two spans to different fields to get them in to the same alignment level, but i have the following problem. PFB is there any thing wrong with the above code the first name field should move a bit right for the proper alignment.

Original source