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

231
Views
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 answers
Answer question

0

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

<div className="header2">

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