A
A
Alexey2020-02-12 13:12:34
css
Alexey, 2020-02-12 13:12:34

Media queries work only in the Bitrix admin panel, what should I do?

@media only screen and (max-width: 1200px){
    .comfort_left{
        margin: 0 auto;
    }
    
    .comfort_right{
        display: none !important;
    }
}


Media queries are not applied in Bitrix. If you sit through the admin panel, then everything is fine. But if you open the site in another browser/incognito tab, nothing will be applied. As if there is no media. I tried in every possible way to clean the cache, and through the admin panel, and through FTP, deleted the folder with the cache, and generally turned it off. Result 0. Most likely the solution is obvious and I'm just stupid)

Answer the question

In order to leave comments, you need to log in

1 answer(s)
M
Mikhail, 2020-02-12
@RuComMarket

css and Bitrix in this case do not affect each other at all, media works out the browser, if it works in the admin panel, then it is correctly written there, but something is wrong on the site, maybe there is no such class, or the letter in the class was mistaken, maybe a parenthesis not delivered somewhere higher, there can be many reasons

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question