Media feature

noun

say it: “MEE-dee-uh FEE-cher” /ˈmiːdiə ˈfiːtʃər/

The condition a media query checks, written in parentheses, such as min-width, orientation, hover or prefers-reduced-motion.

What is a media feature?

A media feature is the condition inside a media query, like min-width, orientation or hover.

@media (hover: hover) {
  .card:hover { transform: translateY(-2px); }
}

In a sentence

  • “The media feature in that rule is hover: it checks whether the visitor has a mouse that can hover.”

Level: Journeyman · More CSS terms at this level

Updated