CSS Media Queries & Responsive Layout Flashcards
Give two examples of media features that you can query in an@mediarule.
Width, orientation
Which HTML meta tag is used in mobile-responsive web pages?
Viewport meta tag
What is abreakpointin responsive Web design?
Breakpoint is where the media query rule works on.
It is the line where we choose to restructure the layout
What is the advantage of using a percentage (e.g.50%)widthinstead of a fixed (e.g.px)widthfor a “column” class in a responsive layout?
Percentage takes the screen width into consideration; pixels are static and stays the same regardless of adjusting the screen size.
If you introduce CSS rules for a smallermin-widthafterthe styles for a largermin-widthin your style sheet, the CSS rules for thesmallermin-widthwill “win”. Why is that?
Because of CSS Cascade; specifically the source order component of the Cascade. Priority is given to CSS rules that are lower on the page.