I am trying to use a Media Object consisting of Media-body
and Media-figure
. HTML and classes follow this form (order should not matter).
.Media
.Media-figure
.Media-body
Simple CSS (no prefixes):
.Media {
display: flex
}
.Media-figure {
flex: 0 0 auto;
}
.Media-body {
flex: 1 1 0;
}
Note that I am changing the Media-figure
flex-shrink coefficient to 0 (as opposed to the link I posted). I assume that Media-figure
this is a fixed size, and we do not want to reduce it if we have too little space.
flex-basis: 0
Media-body
, , , flex-grow: 1
. IE10-11 flex-basis: 0
Media-body
, .
http://jsfiddle.net/sgardn04/3enpp4wg/
(: , . IE10-11!)
- Media-body { flex-basis: auto }
, , , . , IE , webkit. , IE? , webkit , ? .
EDIT: , , -, , flex-basis
, (flex-basis: 0
vs flex-basis: auto
).