React Card CSS Layout ( beginner )

I am not able to target the from class div in the card, the style won't change even when I change the values of the properties. I want to turn the card into what is show in the image, please help me to do so I am a beginner. CODE: https://codepen.io/Prajwal-Nakil/pen/bGzBJrj
No description
No description
2 Replies
Jochem
Jochem12mo ago
your codepen isn't really useable as an example I'm afraid. You can't just paste react code into the JS field on codepen, you'll have to either use a generated version of the HTML and put it in the HTML field, or set up codepen to use React (you can change some settings in the JS box, add Babel as a preprocessor and import react, but you can't import from other files) otherwise, you can use something like codesandbox or just deploy to github pages or vercel or any other way based purely on your JSX, I can only see that you don't have a class-container class. Maybe this just isn't in the example you sent, which is why it's important to have a demo that fully shows the issue you're having.
Leo_
Leo_12mo ago
I got what I did wrong, I just mispelled classname to clasname
Want results from more Discord servers?
Add your server