Mdb-ui-kit: Card height to automatically fit content

Created on 8 Apr 2015  路  8Comments  路  Source: mdbootstrap/mdb-ui-kit

Is this possible? The default card height code has a fixed height, very tall.

enhancement needs test case spec compliance v3-deprecated

Most helpful comment

Yeah, this was a silly design choice, imvHo. There is a fix. Get rid of the "card-height-indicator" hack and remove position:absolute for .card-content.

Hope this helps.

All 8 comments

Not currently... I should add some class to allow it.

this needs to be implemented

Is there a work around to make it that the card height isn't the same for all cards in a gallery? Cards with more content end up overflowing instead of stretching the card to be taller.

This card-height-indicator thing is very unintuitive. What is it? I'd rather control the height myself! I tried doing height: auto but it isn't working.

Yeah, this was a silly design choice, imvHo. There is a fix. Get rid of the "card-height-indicator" hack and remove position:absolute for .card-content.

Hope this helps.

Note, cards have been added in bs4, whereas wells and panels were dropped.

http://v4-alpha.getbootstrap.com/migration/#components

@rosskevin Please note that Bootstrap 4 is not production-ready. We mustn't rely on an alpha version.

Why does this have the v3 label...? Bootstrap3 does not have cards at all... does Bootstrap material design 3 support cards?

yes it has support for cards

Was this page helpful?
0 / 5 - 0 ratings