CSS Flashcards
What does the transform property do?
lets you change the orientation of an element
Give four examples of CSS transform functions.
rotate, skew, scale, translate
The transition property is shorthand for which four CSS properties?
transition-delay, transition-duration, transition-property, transition-timing-function
Give two examples of media features that you can query in an @media rule.
min-width, max-width
Which HTML meta tag is used in mobile-responsive web pages?
name=”viewport” content=”width=device-width, initial-scale=1”
What is a breakpoint in responsive Web design?
point where design changes to keep layout from breaking
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?
layout adapts to exact dimensions of the width. container should be the set measurements
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?
The bottom one due to CSS source order specificity