Media Quries Flashcards

Responsive Design

1
Q

Do you understand what a responsive design is and why we need to make a website responsive?

A

With a responsive site, your site will adapt to each device (Computers, Tablets, & Phones) providing the relevant layout and content that best meets the users’ needs. It also means that your business will only have one site to manage, meaning you’ll only have to update content one time, regardless of how different people consume your content.

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

What is the one CSS tag/rule added to make websites responsive?

A

Media query (@media): the @media rule, allows you to have one set of style rules for computer screens, and another one for mobile phones and so on.

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

Do you know What media query is and why it is used?

A

Media query is a feature of CSS that enables a web page’s view to adapt to different screen sizes and resolutions. They are a fundamental part of responsive web design and are used to customize the appearance of websites for multiple devices.

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

Do you know about the different types of media in Media Query?

A

all: It is used for all media devices.
screen: It is used for computer screen, smartphone, etc.
print: It is used for printer.
speech: It is used for screen readers that read the screen loud.

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

Do you know what breakpoints are in media query?

A

Breakpoints are markings the website content/layout responds or changes according to the device’s width.

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

Do you know the common media query breakpoints and how you can use them?

A

@media (max-width: 540px) {…} - Very narrow screens - below 540px
@media (max-width: 720px) {…} - Smartphones - below 720px
@media (max-width: 960px) {…} - Tablets - below 960px
@media (max-width: 1140px) {…} - Laptops - below 1140px
@media (min-width: 1140px) {…} - Large screens - above 1140px

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

Do you know how to write some CSS that only takes effect when the screen size is between 688px and 920px?

A

The “and” operator is used for combining multiple media features together into a single media query.
Simply set the min and max values to your desired sizes to have a media query affect a certain range of devices.
Example: @media (min-width: 688px) and (max-width: 920px){…}

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