Media Query Triggering when it should not?

Ole

I have this test page. Within it there's a .Test_container class that is supposed to have a flex box column layout unless the minimum width is 768 px. This is the media query rule that is supposed to kick in at 768 px.

@media (min-width: 768px) index.css:1
 .u-md-flex-row {
     -webkit-box-orient: horizontal!important;
     -webkit-box-direction: normal!important;
      -ms-flex-direction: row!important;
      flex-direction: row!important;
 }

If I uncheck `flex-direction: row then the layout renders in a column. If I view the page on my cell phone or shrink the width below 768 px, then media query is still in effect. Thoughts?

user7784189

You have to add the meta tag in your head

<meta name="viewport" content="width=device-width" />

Tried and Tested with your test page

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related

From Dev

Modernizr media query triggering inconsistently

From Dev

Why aren't my media query break points triggering for this image?

From Dev

Menu Still Show When Change @media query

From Dev

Changing text to icons when a media query is met

From Dev

Internet Explorer media queries taking effect when they should not

From Dev

LINQ Query returns false when it should be true

From Dev

sql query returning no results (when it should) with no errors

From Dev

jQuery: Fire function only when certain media query is true

From Dev

Is there a browser event to catch when a css media screen query kicks in?

From Dev

Why use media query type "all" when it's implied?

From Dev

Safari displays overlapping elements when using media query

From Dev

Is there a browser event to catch when a css media screen query kicks in?

From Dev

Why is width:100% relative to screen when within media query

From Dev

Change HTML element class name based on media query / when printing

From Dev

Hamburger menu and nav links not aligning properly when applying media query

From Dev

changing display style doesn't work when use of media query

From Dev

When querying MongoDB should we use Query or Query<T>?

From Dev

Should I always add `screen` to `@media` query? Everything appears to work with or without `screen` condition

From Dev

CSS media query (@media function)

From Dev

CSS media query: W3 validator fails when negating query without media type - bug or part of specification?

From Dev

Triggering gui update in Eclipse (table not expanding as it should)

From Dev

triggering a function (JavaScript, jQuery), it should be simple

From Dev

TeamCity spuriously triggering when no changes

From Dev

indexOf Error When Triggering Event

From Dev

Triggering function when post is published

From Dev

SQL query is only returning one entry, when it should be returning several

From Dev

PHP MySQL Query of view returns 0 results when there should be a result

From Dev

MongoDB: Date range query returns nothing when it should

From Dev

Query is setting column value to 0 when it should be to 10

Related Related

  1. 1

    Modernizr media query triggering inconsistently

  2. 2

    Why aren't my media query break points triggering for this image?

  3. 3

    Menu Still Show When Change @media query

  4. 4

    Changing text to icons when a media query is met

  5. 5

    Internet Explorer media queries taking effect when they should not

  6. 6

    LINQ Query returns false when it should be true

  7. 7

    sql query returning no results (when it should) with no errors

  8. 8

    jQuery: Fire function only when certain media query is true

  9. 9

    Is there a browser event to catch when a css media screen query kicks in?

  10. 10

    Why use media query type "all" when it's implied?

  11. 11

    Safari displays overlapping elements when using media query

  12. 12

    Is there a browser event to catch when a css media screen query kicks in?

  13. 13

    Why is width:100% relative to screen when within media query

  14. 14

    Change HTML element class name based on media query / when printing

  15. 15

    Hamburger menu and nav links not aligning properly when applying media query

  16. 16

    changing display style doesn't work when use of media query

  17. 17

    When querying MongoDB should we use Query or Query<T>?

  18. 18

    Should I always add `screen` to `@media` query? Everything appears to work with or without `screen` condition

  19. 19

    CSS media query (@media function)

  20. 20

    CSS media query: W3 validator fails when negating query without media type - bug or part of specification?

  21. 21

    Triggering gui update in Eclipse (table not expanding as it should)

  22. 22

    triggering a function (JavaScript, jQuery), it should be simple

  23. 23

    TeamCity spuriously triggering when no changes

  24. 24

    indexOf Error When Triggering Event

  25. 25

    Triggering function when post is published

  26. 26

    SQL query is only returning one entry, when it should be returning several

  27. 27

    PHP MySQL Query of view returns 0 results when there should be a result

  28. 28

    MongoDB: Date range query returns nothing when it should

  29. 29

    Query is setting column value to 0 when it should be to 10

HotTag

Archive