I'm using bootstrap on my website. On one specific page I have this annoying rule in CSS:
@media (min-width: 576px)
.col-sm-4 {
-ms-flex: 0 0 33.333333%;
flex: 0 0 33.333333%;
max-width: 33.333333%;
}
On this page I want to enable bootstrap from 707px, not from 576px. We want to use a different layout for width equal and below 707px, so I want to disable bootstrap. I added two classes to the div element:
<div class="col-sm-4 pakiet-column">
col-sm-4 is obviously responsible for bootstrap and websites-column will be used for further styling
I'm trying to disable bootstrap using this code, but it doesn't even show up in the inspector
@media (max-width: 707px) {
.col-sm-4.websites-columnĀ {
flex: initial !important;
max-width: 100% !important;
}
}
The file is placed in the head section below bootstrap link too, so it's supposed to work.
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.2.1/css/bootstrap.min.css" integrity="sha384-GJzZqFGwb1QTTN6wy59ffF1BuGJpLSa9DkKMp0DgiMDm4iYMj70gZWKYbI706tWS" crossorigin="anonymous">
<link href="/wp-content/themes/yazgot/style.css?v=1656686766" rel="stylesheet" />
I wonder what did I mess up in the code. Any hints on how to disable bootstrap but only below certain width of the viewport?