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

230
Vistas
Hi i have this header.css file

I am having issue in react in which my css file is not working properly , so the first header in css file is working fine but (header2) is not working in webpage its not changing , same with every other class i create after header , only header is responsive to Header.css file , please help me solve this issue. Header.js file. i have imported the css file correctly please help

const Header = () =>

{ return

( <div className='header'>

<div classname="header2">

<imgsrc="gym.png"alt="" src="gym.png" </div> </div>

Header.css file

.header {

display:flex;

padding: 15px 20px;

justify-content: space-between;

position: sticky;

background-color: rgb(235, 199, 153);

z-index: 100;

top:0;

box-shadow: 0px 5px 8px -9px black rgba(0,0,0,0,752);

}

.header2>img

{

height: 10px;

}

i tried changing names, shifting sequence but only .header would response in my live server

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

0

The problem is react classname. in react it should be className(UpperCase)

<div className="header2">

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