question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

equal height cards within layout and flex

See original GitHub issue

Is 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:closed
  • Created 6 years ago
  • Comments:11 (3 by maintainers)

github_iconTop GitHub Comments

19reactions
smarescommented, May 22, 2017
10reactions
SumNeuroncommented, Dec 31, 2018

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?

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found