How to create a black console background in your blog

Hi there,

Recently, one of the blog readers asked me about how do I create a black console background to illustrate command-line in some of my posts (ie : 1, 2 , 3)

You just need to include these line, just after the tag in your blog template.


save your template, and republish your blog in it’s entirely (if you’re using blogger).

To use the black console background, you just need to put <div class=”terminal”> and </div> in between of your desired text. For example :

Linux 2.6.17 - login #

will produce

Linux 2.6.17 – login #

That’s all, happy hacking !

2 Replies to “How to create a black console background in your blog”

Comments are closed.