Site Search:

How to style your code blocks in 5 minutes

<Back

Go to your blogger admin, Design -> Template -> Customize -> Advanced -> Add CSS, copy/paste the following css and press "Apply to Blog".
From now now, any HTML wrapped in <pre> </pre> or <div class="code"></div> will have a nice background color



.code, pre {
    background:#F5F3EE;  
}