I have three divs in content div, When browser resizing
- blue and red div must have their fixed width
- green div must resize to left space
I also tried this in css
.yellow{
height: 100%;
width: 100%;
}
.red{
height: 100%;
width:200px;
display:inline-block;
background-color: red;
}
.green{
height: 100%;
min-width:400px;
display:inline-block;
background-color:green;
}
.blue{
height: 100%;
width:400px;
display:inline-block;
background-color: blue;
}
This code does not resize green div, In some browsers red panel not showing
I also tried float: left
and
display: -webkit-flex;
display: flex;
but not working correctly. How to do this?
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…