forked from eda-old-challenges/dom-applying-classes
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstyle.css
45 lines (38 loc) · 741 Bytes
/
style.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
html, body {
height: 100%;
}
body {
display: flex;
align-items: center;
justify-content: center;
}
div {
width: 100px;
height: 100px;
border: 1px #ccc dotted;
margin: 10px;
border-radius: 50%;
background-color: #eee;
}
div.blue {
background-color: blue;
}
div.green {
background-color: green;
}
/*
need to find the difference between div.green and .green
https://stackoverflow.com/questions/6489110/differences-between-div-class-class-and-class-div
*/
div.cat{
background-image: url("https://upload.wikimedia.org/wikipedia/commons/3/3c/Creative-Tail-Animal-cat.svg");
}
.invisible {
display: none;
}
.visible {
display: block;
border: 3px black dashed;
border-radius: 0;
background-color: white;
}