Bootstrap код version-3
не будет работать на version-4
. Вещи постоянно меняются с более новой версией, особенно с flexbox
. Ваш код включает в себя некоторые css
, например @media-query for (992px)
, который уже имеет класс bootstrap с именем lg
Я улучшил ваш код bootstrap
для version-4
, который работает так же, как и version-3
больше HTML
с меньшим CSS
, но все же responsive
СВЯЗЬ JSFIDDLE: https://jsfiddle.net/hrj874sg/1/
.blog h4,
.other {
font-weight: 300;
margin-top: 0;
padding-left: 10px;
padding-top: 32px;
margin-bottom: 5px;
}
.blog {
background: orange;
height: 505px;
}
.other {
background: lightblue;
height: 250px;
}
<!-- Bootstrap Version 4.4.1 CSS -->
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.4.1/css/bootstrap.min.css"
integrity="sha384-Vkoo8x4CGsO3+Hhxv8T/Q5PaXtkKtu6ug5TOeNV6gBiFeWPGFN9MuhOf23Q9Ifjh" crossorigin="anonymous">
<div class="container-fluid">
<div class="row">
<div class="col-lg-6 col-12">
<div class="blog">
<h4>1</h4>
</div>
</div>
<div class="col-lg-6 col-12">
<div class="row">
<div class="col-lg-6 col-12 mt-lg-0 mt-2">
<div class=" other">
<h4>2</h4>
</div>
</div>
<div class="col-lg-6 col-12">
<div class=" other">
<h4>3</h4>
</div>
</div>
<div class="col-lg-6 col-12">
<div class=" other">
<h4>4</h4>
</div>
</div>
<div class="col-lg-6 col-12">
<div class=" other">
<h4>5</h4>
</div>
</div>
</div>
</div>
<div class="col-lg-3 col-12">
<div class="other">
<h4>6</h4>
</div>
</div>
<div class="col-lg-3 col-12">
<div class="other">
<h4>7</h4>
</div>
</div>
<div class="col-lg-3 col-12">
<div class="other">
<h4>8</h4>
</div>
</div>
<div class="col-lg-3 col-12">
<div class="other">
<h4>9</h4>
</div>
</div>
</div>
</div>