I am using a simple layout in bootstrap but cannot make the page fully responsive. The columns are not stacking when I reduce the browser width.
I already tried the SO suggestions below but none helped:
bootstrap.min.css
on head content="width=device-width
on head You can check an online version of my problem here . You can see that the columns are not stacking.
<div class="container">
<div class="row">
<div class="col-12 col-sm-12 col-md-12 col-lg-4 col-xl-4"></div>
<div class="col-12 col-sm-12 col-md-12 col-lg-4 col-xl-4"></div>
<div class="col-12 col-sm-12 col-md-12 col-lg-4 col-xl-4"></div>
</div>
<div class="row">
<div class="col-12 col-sm-12 col-md-12 col-lg-4 col-xl-4"></div>
<div class="col-12 col-sm-12 col-md-12 col-lg-4 col-xl-4"></div>
<div class="col-12 col-sm-12 col-md-12 col-lg-4 col-xl-4"></div>
</div>
<div class="row">
<div class="col-12 col-sm-12 col-md-12 col-lg-4 col-xl-4"></div>
<div class="col-12 col-sm-12 col-md-12 col-lg-4 col-xl-4"></div>
<div class="col-12 col-sm-12 col-md-12 col-lg-4 col-xl-4"></div>
</div>
</div>
Following lines in your CSS override the normal widths of bootstrap. Remove or adjust following lines if you don't want fixed sizes for all columns.
.articles-area .row [class*="col-"]{
float: none;
display: table-cell;
vertical-align: top;
width: 33%;
}
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.