-
Notifications
You must be signed in to change notification settings - Fork 0
/
techNews.css
77 lines (66 loc) · 1.23 KB
/
techNews.css
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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
*{
margin: 0;
padding: 0;
box-sizing: border-box;
}
html{
font-size: 62.5%;
background-color:
#0f0617;
}
#kd_mainHeading{
display: grid;
grid-template-columns:repeat(2,1fr);
grid-template-rows: auto;
justify-content: center;
align-items: center;
gap: 3rem;
}
#kd_mainHeading >div>img{
width: 75%;
border-radius: 1rem;
}
h1{
font-size: 5rem;
margin: 3rem;
padding-left: 5rem;
color: white;
}
#kd_mainHeading >div>h4{
font-size: 2rem;
width: 50%;
color: white;
margin-top: 2rem;
}
#kd_mainHeading >div{
width: 90%;
margin:auto;
cursor: pointer;
}
@media all and (min-width: 768px) and (max-width: 1024px){
html{
font-size: 46.5%;
}
#kd_mainHeading{
grid-template-columns:repeat(2,1fr);
}
#kd_mainHeading >div>img{
width: 100%;
border-radius: 1rem;
}
}
@media all and (min-width: 320px) and (max-width: 767px){
html{
font-size: 40.5%;
}
#kd_mainHeading{
grid-template-columns:repeat(1,1fr);
}
h1{
text-align: center;
}
#kd_mainHeading >div>img{
width: 100%;
border-radius: 1rem;
}
}