-
-
Notifications
You must be signed in to change notification settings - Fork 43
Expand file tree
/
Copy pathmediaQueries.css
More file actions
48 lines (38 loc) · 1.05 KB
/
mediaQueries.css
File metadata and controls
48 lines (38 loc) · 1.05 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
/*This is the common css*/
*,*::before,*::after{
box-sizing: border-box;
margin-top: 0;
}
.title{
color: red;
}
.subtitle{
color:aquamarine;
}
/*Media queries*/
/*
==========================
-------------- PARAMETER -----------
screen : All the screen (Mobile, desktop)
print : how it should look while printing
speech : when the speech is intended
all : when have to apply for all
@media PARAMETER and (CONDITION){
Execution
}
It's okay if you not give a PARAMETER. It will take it as all.
==========================
-------------- CONDITION --------------
max-width:size => It will execute the media work first until it's limit is crossed
min-width:size => It wil execute the non-media work first until it's boundry is met
orientation:landscape => Executes the commands within if the orientation of the screen becomes landscape
orientation:potrait => Executes the commands within if the orientation of the screen becomes potrait
*/
@media (max-width:500px){
.title{
color: aqua;
}
.subtitle{
color: red;
}
}