I have three DIV containers with Bootstrap 3, whereby the first two are in the first row and the third in the next row up to browser width until 991 px
. Higher than 992 px
, all three containers should be in one row. The heights of the containers per row should be the highest (100%).
My example works with Chrome the way I want it to. Unfortunately Safari on macOS and iOS not. In Safari, smaller than 992px
display the two first containers one below the other instead of side by side.
What is the work around for this?
.inner-container{
background-color: #f0f0f0;
padding: 10px;
font-size: 16px;
height: 100%;
}
@media (max-width: 991px) {
.map{
height: 250px;
margin-top: 15px;
}
.row{
display: flex;
flex-wrap: wrap;
}
}
@media (min-width: 992px) {
.row{
display: flex;
}
}
<link href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css" rel="stylesheet"/>
<div class="container">
<div class="row">
<div class="col-xs-6 col-md-4">
<div class="inner-container">
<p>Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut</p>
</div>
</div>
<div class="col-xs-6 col-md-4">
<div class="inner-container">
<p>Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. AtLorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At</p>
</div>
</div>
<div class="col-xs-12 col-md-4">
<div class="inner-container map">
<p>map</p>
</div>
</div>
</div>
</div>