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

console log style

console.log("%cThis is a green text", "color:green");
Comment

PREVIOUS NEXT
Code Example
Javascript :: how to find parent table of tr in jquery 
Javascript :: javascript snumber two decimal places as string 
Javascript :: javascript replace part of string 
Javascript :: disable autocomplete in react fields 
Javascript :: set text of dom element 
Javascript :: last query prisma 
Javascript :: nodemailer gmail example 
Javascript :: jquery get all title 
Javascript :: js form submit listener 
Javascript :: Exceeded maximum budget Budget 10 kB was not met by 478 bytes with a total of 10.5 kB. 
Javascript :: separate digits in javascript 
Javascript :: click element via javascript chrome inspector console 
Javascript :: carousel speed bootstrap 
Javascript :: hide button using javascript 
Javascript :: before in material ui style 
Javascript :: how to generate a fibonacci sequence in javascript 
Javascript :: remove non prime numbers js 
Javascript :: js delete duplicates from array 
Javascript :: jquery how to know if element is visible 
Javascript :: Valid Time javascript 
Javascript :: sort js array by date 
Javascript :: express ejs 
Javascript :: node print stdin 
Javascript :: how to find next multiple of 5 in javascript 
Javascript :: find item in object js 
Javascript :: dd.mm.yyyy pattern regex 
Javascript :: javascript search in array of strings 
Javascript :: favicon in next js not working 
Javascript :: get selected option jquery 
Javascript :: dotenv jest 
ADD CONTENT
Topic
Content
Source link
Name
8+6 =