Welcome to %s forums

<No. 1 Community for developers, by developers/>

Login Register

How to style code tag of html?

For general web development questions using HTML and CSS.
Post Reply
admin
Site Admin
Posts: 45

How to style code tag of html?

Post by admin » Thu Aug 22, 2019 2:33 pm

Code: Select all

pre,code {
    background: #f4f4f4;
    border: 1px solid #ddd;
    border-left: 3px solid #f36d33;
    color: #666;
    page-break-inside: avoid;
    font-family: monospace;
    font-size: 15px;
    line-height: 1.6;
    margin-bottom: 1.6em;
    max-width: 100%;
    overflow: auto;
    padding: 1em 1.5em;
    display: block;
    word-wrap: break-word;
}

Post Reply