equal height cards within layout and flex
See original GitHub issueIs there an existing way to achieve that all cards have equal height in a row when using layout? My workaround is calculating cards height like in the example below in order to consider the margin (using current version 0.12.0).
.flex > .card.ma-2
height calc(100% - 16px)!important
The layout is generated like this, and original height of cards is not the same without the above rule:
v-layout(row wrap child-flex)
v-flex(xs12 sm6)
card1
v-flex(xs12 sm6)
card2
Maybe a more generic approach would be good for layout - e.g. using the fill-height in a different way (currently I add full-height on the layout element and so the effect is limited only to desired places):
.full-height > .flex > .card.ma-2
height calc(100% - 16px)!important
Issue Analytics
- State:
- Created 6 years ago
- Comments:11 (3 by maintainers)
Top Results From Across the Web
Equal height cards with flexbox - Mono Software
Default equal heights card layout with flexbox. Areas marked in red in the image above show the dead space inside the content that...
Read more >Equal height cards using Flexbox - Stack Overflow
If you want equal heights card you can put display:flex in parent div which is above article element so all article sections will...
Read more >An equal height grid using Flexbox | Clearleft
Flex stretches items vertically by default, so it's easy to give items equal heights. This now offers control over the child elements, allowing...
Read more >Equal height layouts with flexbox - Webflow University
Use flexbox to set equal heights for columns — even when each column has different content inside. This video features an old UI....
Read more >How To Create Equal Height Columns - W3Schools
Note: Flexbox is not supported in Internet Explorer 10 and earlier versions. Tip: Read more about flexible boxes in our CSS Flexbox Tutorial....
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
http://codepen.io/anon/pen/mmadzG
This is a similar question, so I am appending it here, but is there an vuetify equivalent to bootstrap card decks? e.g. have two cards one with 1-line title the other with 3-line title, but have the start/end of the titles, the start/end of the text-body and the start / end of the footers line up?