Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

156
Vistas
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
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda