7
Displaying a Code Block
Filed Under CSS &This Site | No Comments Yet
Here’s a challenge… the WordPress “Add New Post” page that I’m currently using to type this post into has a button labeled “code“. If you select a chunk of code (such as the CSS I’ll put later) it wraps the <code> and <\code> tags around it. Depending on the CSS you have mapped to the code tag, you will get a nicely displayed piece of code in your blog. But there’s a catch; you can’t get a solid box/background just by using the default code tags. You need to add the <pre> and <\pre> tags as well….
(more…)