CSS Property:
display:

Note: In Safari, the values "flex" and "inline-flex" requires a prefix to work: "-webkit-flex" and "-webkit-inline-flex".

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