mdbootstrap / material-design-for-bootstrap

Important! A new UI Kit version for Bootstrap 5 is available. Access the latest free version via the link below.
https://mdbootstrap.com/docs/standard/
MIT License
9.34k stars 1.15k forks source link

Cards not behaves like original card in Bootstrap 4 - img issue #2

Closed rafalradomski closed 8 years ago

rafalradomski commented 8 years ago

When I add picture with different sizes to card I expect that image will automatically be extended to whole space in img box and the cards will have the same height always.

Cards in Bootstrap 4 Alpha

https://s4.postimg.io/bguhwks8d/bootstrap.png

How it works in MDB right now:

https://s4.postimg.io/9qbgv3ap9/mdb.png

mdbootstrap commented 8 years ago

Update: this issue isn't actually an bug. In Bootstrap case you can see images are distorted. We definitely prefer to use responsive option with 100% width and auto height. This let you keep the correct ratio of image.

In our opinion is always better to prepare your pictures before (and set them the same size) than risk distortion.

rafalradomski commented 8 years ago

Yes default behavior is like you described, but Bootstrap 4 offers as well option to group elements: and images have the same size.

Are you planing to implement that functionality?

mdbootstrap commented 8 years ago

In the upcoming update we'll enable all available in Bootstrap 4 alpha-3 options.