Reputation: 81
Little problem here.
I have an issue with Safari and flex
.
Here is what I want to achieve with chrome and the result with Safari Result with chrome, firefox, ... and with Safari.
And the code:
<style>
#div1{background:black;width:250px;height:600px;display:flex;flex-direction:column;padding-bottom:5px}
#div2{background:pink;color:#FFF;width:240px;height:200px}
#div3{background:blue;color:#FFF;width:240px;height:100%;position:relative}
</style>
<div id="div1">
<div id="div2">test</div>
<div id="div3">test2</div>
</div>
Do you have any ideas?
Upvotes: 2
Views: 714
Reputation: 81
I found the solution. Here is what I did:
#div3{
background:blue;
color:#FFF;
width:240px;
height:100%;
flex:1 1 100%;
height:auto;
}
Upvotes: 2