Topic: Testimonial card avatar CSS bug

Boris Akimenko pro asked 7 years ago


Hi guys! Great job about MDB4.1! It's about circled avatars now. It's not so circled now :) TESTIMONIAL CARD Your CSS code is:
.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.

Boris Akimenko pro answered 7 years ago


OMG! I'd forgot to write the right code :) Here it is:
.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%;
}

Michal Szymanski staff answered 7 years ago


Hi Boris! Thanks, we're glad you appreciate it ;) We'll improve Testimonial Card. Thank you for information .

Please insert min. 20 characters.

FREE CONSULTATION

Hire our experts to build a dedicated project. We'll analyze your business requirements, for free.

Status

Resolved

Specification of the issue

  • ForumUser: Pro
  • Premium support: No
  • Technology: General Bootstrap questions
  • MDB Version: -
  • Device: -
  • Browser: -
  • OS: -
  • Provided sample code: No
  • Provided link: Yes
Tags