Category "block"

Insert inline code block in Latex document [duplicate]

Hi I am trying to add an inline code block in a Latex document. I know how to add a separate code block using lstlisting but i want to instead

Display block without 100% width

I want to set a span element to appear below another element using the display property. I tried applying inline-block but without success, and figured I could