Follow

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use
Contact

I want to style button in css but the button class not working when I target this from css

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

MEDevel.com: Open-source for Healthcare and Education

Collecting and validating open-source software for healthcare, education, enterprise, development, medical imaging, medical records, and digital pathology.

Visit Medevel

Final Output->>
Final webpage view

I want to style the button but when I target button class from css it’s not working.

>Solution :

actually you are styling the div, if you want to style the button add the classname to button <button className='button'>Contact</button>

Add a comment

Leave a Reply

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use

Discover more from Dev solutions

Subscribe now to keep reading and get access to the full archive.

Continue reading