I have done this code for navbar with reactjs, but the button class is not working. I tried with basic button styling but it’s not working. I’m new with this so I can’t find the wrong part.
the jsx file->>
This is the jsx file
The css file->>
This is the css file
Final Output->>
Final webpage view
I want to style the button but when I target button class from css it’s not working.
2
Answers
Add the class: "button" to the tag.
Your designs are going to the div container, and not the actual button
actually you are styling the div, if you want to style the button add the classname to button
<button className='button'>Contact</button>