Topic: Testimonial card avatar CSS bug
Boris Akimenko pro asked 8 years ago
.testimonial-card .avatar {
border-radius: 50%;
width: 120px;
height: auto;
margin: -65px auto 0;
}
.testimonial-card .avatar img {
border: 5px solid #fff;
background: #FFF;
width: 100%;
}
And if you set the width of some element you better set the height of this element too at least as "auto", 'cause if someone gonna take your code for customization, as example for changing the height of ".testimonial-card .card-up" from 120px то 8rem, they'll get the egg-form avatar. Michal Szymanski staff pro premium priority answered 8 years ago
Boris Akimenko pro answered 8 years ago
.testimonial-card .avatar {
border-radius: 50%;
width: 120px;
height: auto;
margin: -65px auto 0;
border: 5px solid #fff;
background: #FFF;
}
.testimonial-card .avatar img {
width: 100%;
}
FREE CONSULTATION
Hire our experts to build a dedicated project. We'll analyze your business requirements, for free.
Resolved
- User: Pro
- Premium support: No
- Technology: General Bootstrap questions
- MDB Version: -
- Device: -
- Browser: -
- OS: -
- Provided sample code: No
- Provided link: Yes