skip to Main Content

I want my css to be applied for only between 544px – 768px width. How can I use bootstrap @media feature on this purpose? I have tried something like in the following example but it didn’t work:

@media (min-width:544px || max-width:768px)  { } 

3

Answers


  1. This will work for your case –

    @media all and (max-width: 544px) and (min-width: 768px) {}
    
    Login or Signup to reply.
  2. Use like this:

    @media (max-width:768px) and (min-width:544px) {
    
    }​
    
    Login or Signup to reply.
  3. The media query syntax will be:

     @media screen and (min-device-width: 544px ) and (max-device-width: 768px) {
       //Your CSS here
     }
    
    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search