FlashKeepers

Web Development · College · College and University

CSS III: Responsive Design and Animation

Media queries, mobile-first design, container queries, custom properties, transitions, keyframes and transforms.

About this set

40 basic cards for College Web Development. Set 3 of 3 in CSS. It opens with "What CSS syntax targets only screens 768px wide or larger?" and "What CSS syntax applies styles only to screens narrower than 600px?". Study it alongside the other College sets below.

40 cards · basic cards · AI-written, checked twice. Edit anything.

Study this set free Look inside first Get FlashKeepers for iPhone

Opens in your browser, no account. Get the iPhone and iPad app · Android app

What CSS syntax targets only screens 768px wide or larger?
Show answer@media (min-width: 768px) { }
What CSS syntax applies styles only to screens narrower than 600px?
Show answer@media (max-width: 599px) { }
How do you target print media in a CSS media query?
Show answer@media print { }
What media feature detects whether the viewport is in landscape orientation?
Show answer(orientation: landscape)
How do you combine two media conditions so both must be true?
Show answerUse the 'and' keyword between conditions.
What media feature detects a touch screen with low-precision input?
Show answer(pointer: coarse)
What is the core principle of mobile-first design?
Show answerBuild CSS for mobile devices first, then enhance with larger-screen styles.
In mobile-first CSS, where do you place base mobile styles?
Show answerOutside any media queries, at the top level.
In mobile-first, what type of media query breakpoint do you use for larger screens?
Show answermin-width breakpoints.
What file size or performance advantage comes from mobile-first design?
Show answerMobile users download only the CSS they need initially.
How do you declare an element as a container for container queries?
Show answercontainer-type: size; or container-type: inline-size;
What container query unit represents 1% of the container's width?
Show answercqw
What container query unit represents 1% of the container's height?
Show answercqh
What CSS syntax applies styles based on a container's minimum width?
Show answer@container (min-width: 400px) { }
Can container queries check a container's CSS property values instead of size?
Show answerYes, using @container style(--property-name: value) queries.

25 more cards in the app

Study this set free