Topic: full-image-carousel background Images Not responsive

Babak Nabiee pro asked 6 years ago


Hi, I am using the sample full-image-carousel page, and even in the samples when you open on phones the images are not truly responsive? how can we make them responsive. Lower than width 1390px starts to crop the image.

Marta Wierzbicka staff answered 6 years ago


Hi, In the 'full page image carousel' template, images can't be fully responsive if you want an image cover the whole screen. Horizontal pictures always will be cropped on devices like phone or tablet in vertical orientation. You can center an image by adding background-position: center; to this part of code in css file:
.carousel-item {
            background-image: url("http://mdbootstrap.com/images/regular/people/img%20(83).jpg");
            background-repeat: no-repeat;
            background-size: cover;
            background-position: center;
        }


Please insert min. 20 characters.

FREE CONSULTATION

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

Status

Specification of the issue

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