Place Images in center of image caroucel


Topic: Place Images in center of image caroucel

KuebelElch15 pro asked 6 years ago

Hello, I am having a image upload function. I don't want to resize the uploaded Image. I am using this carousel in the image head of a card. Now I don't want that the carousel resizes every time it changes the image, instead I want a gray background and the image centerd in the middle of the carousel. Is this possible? Any help would be nice.

Bartłomiej Malanowski staff pro premium commented 6 years ago

Could you please show us your code? That would help us to resolve your issue


KuebelElch15 pro answered 6 years ago

Here is the code for my card. If the pictures have different heights, the slider resizes. With this the card rezises and the grid view with multiple cards looks bad. If I give the slider a fixed height, the picture sticks to the top of the card and the controls are (on a white background) invisible. Also there is a lot space. I would like to have a gray background and the picture is placed vertical and horizontal centered and the slider has a fixed height. So that the image slides in the center but the controls are allways in the same position. Snipped

Bartłomiej Malanowski staff pro premium answered 6 years ago

I think that this answer on StackOverflow should resolve your issue
Please insert min. 20 characters.

FREE CONSULTATION

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

Status

Answered

Specification of the issue
  • User: Pro
  • Premium support: No
  • Technology: MDB jQuery
  • MDB Version: 4.5.10
  • Device: all
  • Browser: all
  • OS: all
  • Provided sample code: No
  • Provided link: Yes
Tags