CSS Property:
display:

Note: In Edge, the value "contents" does not work.

Result:
A span element. mySpan. Another span element.
CSS Code:
span#mySpan {
background-color:red;
display:inline;
}
Click the property values above to see the result
W3Schools.com - Play it