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

167
Vistas
SVG is offset in navbar

I am making my webpage in ReactTS. I made a navbar and I wanted to add some SVGs from MUI Material Icons. But my only problem is that the SVG is a bit too high:

Screenshot

Already tried setting the position to inherit but also had no effect, here is the CSS:

nav {
  position: fixed;
  display: block;
  margin: auto;
  top: 0;
  width: 100%;
  height: 50px;
  padding-left: 10px;
  font-size: calc(10px + 2vmin);
  background-color: #3e424d;
  color: white;
}

svg {
  position: inherit;
}

Could anyone help me? I am not good at CSS

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

0

Thanks to @Marshall, I could fix it by adding:

display: flex;
align-items: center;

(Also removed position: inherit;)

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