Media Queries Flashcards
1
Q
What are some common breakpoints?
A
0 px - 480 px = small phones
480 px - 768 px = portrait tablet
768 px - 1024 px = landscape tablet
1024px - 1200px = regular computer
2
Q
What do you need to know about cross browser compatibility?
A
You need to use css browser prefixes.
CSS prefixes:
android: -webkit-
chrome: -webkit-
firefox: -moz-
internet explorer: -ms-
ios: -webkit-
opera: -o-
safari: -webkit-
Example for border-radius:
- webkit-border-radius: 25px;
- moz-border-radius: 25px;
- o-border-radius: 25px;
border-radius: 25px;
3
Q
What is the extension in brackets that can help us with browser prefixes?
A
Autoprefixer
4
Q
What are the three js scripts we need for older browsers?
A
Go to jsdelivr.com