Style console log messages

var cnsl = function(message) { console.log( "%c%s", "color: gold; background: #000; font-size: 20px; padding: 2px 4px;", message); }; cnsl("I am a very stylish logged message.");
Nice way to style you console logz. works with a few css properties!

Be the first to comment

You can use [html][/html], [css][/css], [php][/php] and more to embed the code. Urls are automatically hyperlinked. Line breaks and paragraphs are automatically generated.