You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I do not think this is an issue. The carousel requires only images having the same dimensions and the .carousel should never be wider than these images. We can add this to the docs.
When on of the images is smaller, center it only helps when the height is the same for all images. To center it you have to add the center-block class to the img element in your HTML, according the refactoring #18161; for instance <img class="carousel-item-img img-fluid center-block" src="">
when you have to add images with different dimensions you will have to change your images. Put the smaller images on a white or transparent background having the same dimension as your largest image with a image editor.
Refs #18140 (comment)
When a slide image is narrower than the carousel itself, it becomes left-aligned instead of centered.
The text was updated successfully, but these errors were encountered: