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

160
Vistas
"*" is not a pure selector. How to add styles globally?

I'm using Nextron. I ran my code successfully but when I opened the window, the body tag had a margin of 8px. I opened up the dev tools and changed it successfully but how do I change in my code? If I try to add it any of the module.css file it gives me an error. If I try to make a global.css file it ignores it. How should I configure the window with global styles?

_app.js :

export default function MyApp({ Component, pageProps }) {
    return <Component {...pageProps} />
}

global.css:

* {
  margin: 0;
  padding: 0;
}
html,
body {
  font-family: "SF Pro Text", "SF Pro Icons", "Helvetica Neue", "Helvetica",
    "Arial", sans-serif;
  padding: 20px 20px 60px;
  max-width: 680px;
  margin: 0;
}
a {
  color: inherit;
}

about 4 years ago · Juan Pablo Isaza
1 Respuestas
Responde la pregunta

0

You can use reset.css or normalize.css to get rid of default styles. You can find install instructions on those pages.

As for your import issue, I doubt that anyone could help with the details you've provided. You can update your answer with your styles structure.

about 4 years ago · Juan Pablo Isaza Denunciar
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