-3
@media(min-width:768px){body:border:1px solid red;}

if i resize the window below 768px , it does not switch to iphone6+ media query

@media only screen and (min-device-width: 414px) and (max-device-width: 736px) and (-webkit-min-device-pixel-ratio: 3) and (orientation: landscape) { body:border:1px solid red;}

Please suggest

user8942
  • 20
  • 2

1 Answers1

1

Min-width is the minimum width so anything above 768px. If you are wanting to have something effect 768px AND below it's @media screen(max-width:768px){...}

Max-Width vs Min-Width

Community
  • 1
  • 1
wsfuller
  • 1,810
  • 8
  • 31
  • 49