Search
 
SCRIPT & CODE EXAMPLE
 

JAVASCRIPT

css in console.log

console.log("%cStop!", "font: 50px sans-serif; font-weight:bold; color:red; -webkit-text-stroke:1px black;");
Comment

css customize console.log

// Rainbow Giant Styled Text
const style = 'font-weight: bold; font-size: 50px;color: red; text-shadow: 3px 3px 0 rgb(217,31,38) , 6px 6px 0 rgb(226,91,14) , 9px 9px 0 rgb(245,221,8) , 12px 12px 0 rgb(5,148,68) , 15px 15px 0 rgb(2,135,206) , 18px 18px 0 rgb(4,77,145) , 21px 21px 0 rgb(42,21,113)';

console.log('%c Rainbowww!', style);
Comment

Console.log CSS styling


//example 1: (Default "STOP" you see when opening the console)
console.log(
        "%cStop!",
        "color:red;font-family:system-ui;font-size:4rem;-webkit-text-stroke: 1px black;font-weight:bold"
      );
//example 2:
console.log("%c" + someVariable, 'color:blue;border:2px solid red');
//example 3:
console.log("%cWord 1 %cWord2  ", 'color:red;border:2px solid blue;background:green','color:blue;border:2px solid red');
Comment

PREVIOUS NEXT
Code Example
Javascript :: get value onChange from mat-select angular 
Javascript :: jquery set checkbox checked 
Javascript :: ec2 yum nodejs 
Javascript :: fs check if dir is dir 
Javascript :: js how to shufle elements in array 
Javascript :: disable input field from jquery 
Javascript :: node js quit 
Javascript :: devextreme datagrid get selected row keys 
Javascript :: how express serve public folder 
Javascript :: Your global Angular CLI version (11.0.2) is greater than your local version 
Javascript :: logout in react js 
Javascript :: javascript round decimal 2 digits 
Javascript :: copyright in javascript 
Javascript :: nodemailer types 
Javascript :: jspdf text align center 
Javascript :: html string to html 
Javascript :: Javascript track mouse pointer 
Javascript :: js format price 
Javascript :: vue settimeout in computed 
Javascript :: node version not specified in package.json 
Javascript :: clear form in react 
Javascript :: how to check element has an attribute js 
Javascript :: node js list all installed modules 
Javascript :: js detect mobile 
Javascript :: jquery json decode 
Javascript :: js get timezone name 
Javascript :: js change contenteditable value 
Javascript :: javascript get 7 days from now 
Javascript :: react style justify content space between 
Javascript :: unix time to date javascript 
ADD CONTENT
Topic
Content
Source link
Name
9+3 =