I have the following element:
<div style="display: flex; flex-direction: row;">
<div style="flex 1 1 calc(50% - 20px);" [repeated-n-times]> <!-- I don't want to use calc() here. But I'm looking for the same effect. -->
<!-- some other markup -->
</div>
</div>
Basically, I want to get rid off the calc
part from flex-basis
property. The last one from shorthand syntax.
Why? As you may know, IE11 is having some issues with calc
in flex-basis
property, on other side, we are using @angular/flex-layout
module in our application, and we're looking for a workaround to make the layout looks (well, partially) good in IE11.
Is this doable?