Answer the question
In order to leave comments, you need to log in
Why don't media queries work on some computers?
Hello! There is a site on wordpress , where in my own theme I register bootstrap styles and my own style through the functions.php file
// регистрируем стили
add_action( 'wp_enqueue_scripts', 'register_plugin_styles' );
// регистрируем файл стилей и добавляем его в очередь
function register_plugin_styles() {
wp_register_style( 'bootstrap-css', get_template_directory_uri() . '/css/bootstrap.min.css' );
wp_enqueue_style( 'bootstrap-css' );
wp_register_style( 'style', get_template_directory_uri() . '/style.css' );
wp_enqueue_style( 'style' );
}
.navbar-inverse .navbar-nav>li>a {
padding: 34px 7px 38px;
}
@media screen and (min-width: 1310px) and (max-width: 1366px) {
.navbar-inverse .navbar-nav>li>a {
padding: 34px 15px 38px;
}
}
@media screen and (min-width: 1440px) {
.navbar-inverse .navbar-nav>li>a {
padding: 34px 10px;
}
}
@media screen and (min-width: 1600px) {
.navbar-inverse .navbar-nav>li>a {
padding: 34px 15px;
}
}
@media screen and (min-width: 1680px) {
.navbar-inverse .navbar-nav>li>a {
padding: 34px 20px;
}
}
@media screen and (min-width: 1920px) {
.navbar-inverse .navbar-nav>li>a {
padding: 34px 31px;
}
}
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question