My @media queries are not being recognized by the code editor if they are placed after a specific line. Can anyone explain why this is happening

After browsing through similar questions, I couldn't find a solution to my issue. I have a set of media queries and I noticed that they stop working after a certain point. The queries work fine up until @media (min-width: 992px) and (max-width: 1199.98px), but anything beyond that doesn't get applied. I tried rearranging the code by moving the styles below the @media query above it, which made those work but caused this one to stop working. I'm puzzled as to why this is happening. Any thoughts on how to fix it?

@media screen and (min-width: 1500px) {
    .provider-specialty h5 {
        text-align: center;
    }

}

/*---laptop 1366---*/
@media (min-width: 1366px) and (max-width: 1499.98px) {
    /* Styles */
}

/*--- XLarge Devices laptop1280(desktop/laptop)--*/

@media (min-width: 1200px) and (max-width: 1365.98px) {
    /* Styles */
}


/*--- Large Devices (landscape tablets/medium desktop)IpadAir2 landscape--*/

@media (min-width: 992px) and (max-width: 1199.98px) {
    /* Styles */

}

/*--- Medium Devices (portrait tablets/small desktop)--IPadAir2Portrait*/

@media (min-width: 768px) and (max-width: 991.98px) {
    /* Styles */
}

/*--Iphone 7 Plus landscape --*/

@media (min-width: 736px) and (max-width: 767.98px) {
    /* Styles */
}

/*---Google Nexus 7 Portrait 600 --*/

@media (min-width: 611px) and (max-width: 735.98px) {
    /* Styles */
}

/*--- Small Devices (landscape phones/?portrait tablets?) Galaxys7 landscape--*/

@media (min-width: 576px) and (max-width: 610.98px) {
    /* Styles */
}

/*-----Phone Landscape- (Apple Iphone SE Only)----*/

@media (min-width: 568px) and (max-width: 575.98px) {
    /* Styles */
}

Answer №1

You've mistakenly included an extra apostrophe in the min value for 1366px

/*---laptop 1366---*/
@media (min-width: 1366px) and (max-width: 1499.98px) {
    .nav-item {
        margin-right: 40px;
    }

Similar questions

If you have not found the answer to your question or you are interested in this topic, then look at other similar questions below or use the search

Issues with forms displaying as raw text within Laravel 5

I recently entered the realm of Laravel. While following a tutorial on OpenClassrooms, I encountered some challenges as the tutorial was for Laravel 4 and I am using Laravel 5. After struggling to adapt my controllers and resolve namespace dependency erro ...

`Ensuring uniform height for card titles`

So here's the scenario I'm dealing with: https://i.sstatic.net/4f7AR.png There seems to be an issue with alignment in the dark blue boxes when they are displayed in a flex container. The top box is not aligned properly with the one next to it. ...

The Bootstrap Modal will still appear even in the presence of a validation error

Recently, I created a sign-up page using HTML and Bootstrap 5. To ensure data validation on the form, I integrated Bootstrap's validation feature. However, after completing the registration process, a modal pops up as intended. The only issue is that ...

Tips for adjusting image size using media queries

How can I ensure that the image resizes correctly on smaller screens? Currently, the image spills over the container and there are gaps between the top/left of the container and the image. Should I adjust the image size in the media query or expand the con ...

The content within a select tag is experiencing vertical misalignment

The select tag on my page is behaving oddly - when there is a value in it, it is aligned to the bottom vertically. Upon inspecting the CSS, I noticed that the only styles applied are font size and type. Strangely, removing the doctype from the page resol ...

"Looking to replicate the "drag and select" chart feature seen on Stackoverflow? Here's how you can create it

Does anyone know how to create a drag and select chart similar to the one described? I am looking for a Jquery plugin that can help replicate this effect. The chart should be able to read values in order to fill it, and have both a starting and ending poin ...

Using Powershell to divide HTML elements

I have a unique HTML file that I created myself (stored locally) where all the content is on one long line: <html><head><META http-equiv="Content-Type" content="text/html; charset=UTF-8"><title>server - path</ ...

Clear the error message for Vue on incorrect inputs

When a user enters invalid information into an input field, the browser typically displays a message in a bubble to indicate the error. I want to customize this behavior in Vue, but I am unsure of the correct approach. In JavaScript, I know how to prevent ...

How can I position an element at the bottom of a page using VueJS and Bootstrap CSS?

https://i.sstatic.net/ojanG.png I am trying to move my footer (Copyright statement) to the bottom of the page. However, it is creating some extra white space beneath the footer. How can I eliminate this additional white space? This issue is occurring in ...

The horizontal overflow in CSS is ineffective

I am currently working on a project where I need to place multiple divs (represented by black blocks) within a container (depicted as a blue block). The challenge is to fit in as many divs as possible within the container, which has a variable width and di ...

Switch body class when the navbar's collapse show class is toggled

There are numerous methods to accomplish this task, but I am seeking the most optimal and efficient approach. My goal is to toggle a custom body class when the .navbar-toggle triggers the .show class on the .navbar-collapse element. I'm hesitant abo ...

Troubleshooting HTML and JavaScript

Currently grappling with a coding challenge for a website in HTML/Javascript. Managed to put together a significant portion of code that seems functional, yet the roadblock I've hit now is around handling multiple line strings within Javascript. < ...

How to customize the image size in a Bootstrap slider

Hey there! I'm new to learning Bootstrap and I recently created a website using Bootstrap 4. I added a slideshow, but the photos don't fill the entire page even though I specified height:100; width:100; in the CSS. I also tried height:auto; and w ...

Unable to scroll content above the header/banner

Hey there, I'm looking for some assistance to achieve a similar effect to the one on this page: https://jsfiddle.net/WsXP6/126/ However, my goal is to have the top section be a solid color instead of an image. I've been struggling to make it wo ...

Use JavaScript to transfer list values to a textbox area

<!doctype html> <html> <head> <meta charset="utf-8"/> <title>My Title</title> <script src="http://ajax.googleapis.com/ajax/libs/jquery/1.10.2/jquery.min.js"></script> <s ...

Designing an image to adjust to different screen sizes while maintaining its specified dimensions

I'm currently retrieving pictures from Bing, but unfortunately you have to specify the height/width of the image in the URL. I want the map image to always be aligned with the table on the left, regardless of the desktop screen size or the number of r ...

What is the best way to integrate JavaScript with my HTML command box?

I'm having some trouble with an HTML command box that is supposed to execute commands like changing stylesheets and other tasks. I thought I had everything set up correctly, but it doesn't seem to be working at all. Below is the HTML code with th ...

Struggling to align the h1 tag with a p tag on the same line

How can I align the balance to the upper right-hand corner of my website? I'm new to HTML and CSS and struggling to get the p tag next to the h1 tag. I've tried using display inline for the h1 tag and float right for the p tag, as well as setting ...

The form includes Bootstrap columns and a button, but there is noticeable wasted space within the

This is the form structure I am working with: <form method="GET" action="."> <div class="container-fluid pt-2 px-5 py-3"> <div class="row g-4"> <div class= ...

Discover which students have conflicting schedules with themselves

To put it simply, my question involves a table display where student numbers (USN) are concatenated in groups and the entire row is displayed using a foreach loop. Row 1: Subject 1 - 22/07/2015 - 08:00 - 1XX10XX086, 1XX10XX087, 1XX09XX088 Row 2: Subject ...