I recently updated the theme I use on this blog (Cleanr) to the latest version via the WordPress Dashboard and discovered that code snippets were no longer displaying correctly – overflowing into the sidebar.
After comparing the old and new style.css files for this theme, I noticed that the following line was missing from the new one:
pre {display: block; overflow: auto; background: #f3f3f3; padding: 5px; margin: 20px 0; font-family: monospace; border: 1px solid #dadada;}
I enclose all of my code snippets in HTML “pre” tags – the above code (written by myself) wraps them in a nice little box on the page – using a horizontal slider to deal with the overflow issue experienced. It seems I made changes to the original Cleanr theme – but completely forgot to change the new code after performing the update.
Hopefully everything should look a little nicer now