Solve the problem of invalid button class in CSS
P粉111641966
P粉111641966 2023-08-13 18:54:51
0
2
528
<p>I have completed the code for this navigation bar using ReactJS, but the button class does not work. I tried basic button styling but it didn't work. I'm new to this so can't find the wrong part. </p> <p>jsx file->>This is a jsx file</p> <p>css file->>This is the css file</p> <p>Final Output->>Final Web View</p> <p>I want to add styles to the buttons but when I select the button class from css it doesn't work. </p>
P粉111641966
P粉111641966

reply all(2)
P粉334721359

Add the class attribute to the <button> tag, and the class attribute value is "button".

Your design should be applied to the button itself, not the div container.

P粉457445858

Actually you are styling a div, if you want to style a button add the class name to the button<button className='button'>contact</button>

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template