-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathboxShadow.css
56 lines (53 loc) · 907 Bytes
/
boxShadow.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
/*box-shadow CSS*/
* {
font-family: Tahoma;
box-sizing: border-box;
}
.row:after {
clear: both;
content: "";
display: block;
}
[class*="col-"] {
padding: 15px;
float: left;
}
.col-50 {
width: 50%;
}
.col-100 {
width: 100%;
}
.cardTxt {
width: 300px; /*best to have the width at a constant size*/
box-shadow: 0 4px 8px 0 rgba(0,0,0,0.2), 0 6px 20px 0 rgba(0,0,0,0.19); /*repeating the dementions and rgba() creates a fade effect*/
text-align: center;
}
.txt {
background-color: #4DC9FF;
color: #fff;
padding: 10px;
font-size: 150%;
}
.txtSM {
padding: 10px;
}
.cardImg {
width: 300px;
box-shadow: 0 4px 8px 0 rgba(0,0,0,0.2), 0 6px 20px 0 rgba(0,0,0,0.19);
text-align: center;
}
.imgTxt {
padding: 10px;
}
@media only screen and (max-width: 768px) {
[class*="col-"] {
width: 100%;
}
.cardTxt {
width: 250px;
}
.cardImg {
width: 250px;
}
}