Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

148
Views
Is there a way to reduce the line spacing in Chrome Devtools console?

I'm trying to eliminate the spacing between lines in console.log() output in Chromes Devtools console. With larger fonts this is not a problem, but I can't do it with very small fonts (Which is what I need).

Open Devtools and run the snippet:

console.log('%cTHIS IS A TEST\nTHIS IS A TEST\nTHIS IS A TEST', 'color: green; font-size: 7px;');

As you can see there's a large space between the lines. I've tried adding a line-height attribute but it just clips the top and bottom of the text, without changing the distance between the lines.

I've also tried negative padding\margin, it didn't do the trick.

Is there a way to get the lines to "touch" without clipping?

about 4 years ago · Juan Pablo Isaza
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!