Andre's Blog

20160224 How To Give Code-Blocks A Style in HTML

[WEB]

Today I have spend some time on figuring out how to get my code examples in boxes. Giving the code-tags a style changes the output per line, but not per block.

The solution was to give the pre-tag a style :

<style>
pre {   
    background-color:black;
    color:#00FF00;
    padding: 15px;
}
</style>

...

<pre>
    <code>
        ...
        the code example
        ...
    </code>
</pre>

@20160221 "Wartbar, die Bar wo man nur wartet aber nie etwas bekommt!"

This week I mentioned to a colleague, that I now have a blog on my domain "wartbar.de". She laughed and said "Wart-Bar, the bar where you only wait but never get anything.". It's a joke which only works in German, "warten" means to wait...

Select where to go ...


The Blog
My Technical Blogs
Projects
Blogs Of Friends
RSS
CV/About
Me