CSS Flashcards
What does the transform property do?
applies a 2D or 3D transformation to an element.
Give four examples of CSS transform functions.
translateX, translateY, rotateX, rotateY, skew, matrix3d, scale
The transition property is shorthand for which four CSS properties?
transition-property, transition-duration, transition-timing-function, and transition-delay.
Give two examples of media features that you can query in an @media rule.
min-width, width, min-height, height , max-width
Which HTML meta tag is used in mobile-responsive web pages?
viewport
What is a breakpoint in responsive Web design?
the point at which the content and design of a website changes to adapt to different device screen sizes
What is the advantage of using a percentage (e.g. 50%) width instead of a fixed (e.g. px) width for a “column” class in a responsive layout?
requires less media queries
scales with the browser size
If you introduce CSS rules for a smaller min-width after the styles for a larger min-width in your style sheet, the CSS rules for the smaller min-width will “win”. Why is that?
source order
because its below and is read after