Tag Archives: wordpress

Scrollbars for code

A lot of the things I want want to post here are too wide for my theme. to accommodate I’ll use scroll-bars. It took a little googling to find out how to do it. < pre style=”overflow-x:auto; overflow-y:hidden” >

Monospaced code/command line snippets with wordpress

After messing around with various <code> and <pre> tags in wordpress I finally just took at look at the source and found the CSSs it was calling and added this to one of them: pre { font-size: small; border:1px solid #ccc; } Gives it that nice box around the code and keeps everything monospaced.