G
G
Genanadi2021-09-03 23:30:48
React
Genanadi, 2021-09-03 23:30:48

Why are the styles not being applied?

Along with the jsx file in the folder, I have a css file, when adding a div class with className = "fre", and then using it in css . fre{properties} it does not style it.
And interestingly, the img of this file stylizes.

import s from './Friend.module.css';


const FriendCola = (props) =>{
return(
    <div classname={s.fre}>
        <img src='https://342031.selcdn.ru/rusplt/52/104/13753539.jpg' ></img>
        Cola Xarakiri
    </div>
)


}
export default FriendCola

.fre{
  border: 2px solid black;

}

img{
width: 30px;
height: 30px;
border-radius: 50%;
}

Answer the question

In order to leave comments, you need to log in

1 answer(s)
K
Kira, 2021-09-03
@Genanadi

className, not classname?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question