Responsive web-design principles Flashcards

1
Q

How to create a media query:

A

Media Queries are a new technique introduced in CSS3 that change the presentation of content based on different viewport sizes.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

Media query examples:

A

@ media ( max-width: 100px ) { /* CSS Rules */ }

@ media ( min-height: 350px ) { /* CSS Rules */ }

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

How to make images responsive:

A

. responsive-img {
max-width: 100% ;
height: auto ;

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

How to use a Retina Image for Higher Resolution Displays

A

Some displays are made with higher pixel density nowadays, a way to insure that your image will not look pixelated in such displays is by setting their width and height to half their original values.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

The four different viewport units:

A
  • vw (viewport width): 10vw would be 10% of the viewport’s width.
  • vh (viewport height): 3vh would be 3% of the viewport’s height.
  • vmin (viewport minimum): 70vmin would be 70% of the viewport’s smaller dimension (height or width).
  • vmax (viewport maximum): 100vmax would be 100% of the viewport’s bigger dimension (height or width).
How well did you know this?
1
Not at all
2
3
4
5
Perfectly