<div class="code-wrapper">
<div class="code-header">
<span class="lang-label">CSS</span>
<button class="copy-code-btn">Copy</button>
</div>
<pre><code id="codeSource">.element {
display: flex;
justify-content: center;
color: #3b82f6;
}</code></pre>
</div>
Back to Snippets
Code Block with Copy Button JS
Display source code beautifully with this syntax-highlighted style block. It includes a functional "Copy" button in the top right corner, making it easy for developers to grab your snippets.
370