Dynamic SVG page decoration

Notice: A non well formed numeric value encountered in /customers/e/c/1/fredrikdahlen.se/httpd.www/wp/wp-content/plugins/crayon-syntax-highlighter/crayon_formatter.class.php on line 118 Notice: A non well formed numeric value encountered in /customers/e/c/1/fredrikdahlen.se/httpd.www/wp/wp-content/plugins/crayon-syntax-highlighter/crayon_formatter.class.php on line 119

Here is a little PHP and SVG snippet to create a color striped decoration bar (similar to the one used on this site).


The PHP script prints out a CSS style that can be added to any desired HTML-element. I “borrowed” the idea from Twitter and put together a very simple PHP-function to do the work.