How can I achieve the gray background color, like in this word
, which is contained within an inline <pre></pre>
?
This is what I have attempted so far. The code snippet shows that the inline style works fine after the </pre>
but not before <pre>
.
pre.inline {
display: inline;
background-color: #80b3FF;
border-radius: 4px;
padding: 3px
}
<p>We utilize <pre class="inline">model</pre> to define the statistical model.</p>