md-card-actions should align at the container's bottom
See original GitHub issuePlaying with Puppy Love Demo, if card-content
have different heights and card-container
is defined as row
:
.card-container {
display: flex;
flex-flow: row wrap;
}
then, the md-card-actions
are not aligned at the bottom. Looking in the Angular Material Specs, I could not find what is the “right” behavior in this case, but action buttons not aligned at bottom looks pretty wired.
Issue Analytics
- State:
- Created 7 years ago
- Reactions:32
- Comments:18 (4 by maintainers)
Top Results From Across the Web
Directives > mdCard - Angular Material
The <md-card> directive is a container element used within <md-content> containers. An image included as a direct descendant will fill the card's width....
Read more >How to align content of a div to the bottom - Stack Overflow
This trick works by creating a tall, skinny div, which pushes the text baseline to the bottom of the container. Here is a...
Read more >Aligning items in a flex container - CSS: Cascading Style Sheets
In this guide, we will take a thorough look at how the alignment and ... and while working in a language written top...
Read more >Align buttons at bottom of containers - WordPress.org
I would like all 3 of the buttons to be aligned to the bottom of their respective containers. I've tried using the approach...
Read more >15 ways to implement vertical alignment with CSS
Absolute positioning and margin: auto. An element with no intrinsic size can be centered by simply using equal values from the top and...
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
@spookyvale, I just changed the css for md-card to be using display:flex, with a margin-top on the card-actions
@willshowell thanks!
This is a quick fix
or you can come close with a simple override:
The problem is how card maintain
flex
internally… we might need to wrap the inner html of a card with a flex container to handle these situations… (as i did in the stackblitz) @mmalerba thoughts?