-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathhomework2.css
More file actions
134 lines (115 loc) · 2.5 KB
/
Copy pathhomework2.css
File metadata and controls
134 lines (115 loc) · 2.5 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
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
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
body{
background-color: yellow;
}
a:link {
color:red;
}
a:visited{
color: blue;
}
/* bgcolor="yellow" link="red" vlink="blue"*/
h1{
color:red;
text-align: center;
}
/* <h2 align="right"><font color="blue"><i>Using CSS</i></font></h2>*/
p::first-letter{
font-style: italic;
font-size: 40px;
font-weight: bold;
}
h2{
color: blue;
text-align: right;
font-style: italic;
}
h3{
color: blue;
text-align: right;
font-size: 30px;
font-style: italic;
}
/*<h3 align="right"><font color="blue" size="30px"><i>*/
h4{
color: red;
text-align: right;
}
/*<h4 align="right"><font color="red">The table showing below</font></h4>*/
table{
background-color: green;
padding: 10px;
border-spacing: 5px;
animation: changeColor 10s;
-moz-animation: changeColor 10s; /* Firefox */
-webkit-animation: changeColor 10s; /* Safari and Chrome */
color: white;
}
/*<!--<bgcolor="cyan" cellpadding="10px" cellspacing="5px">-->*/
.word{
color: red;
}
/*<tr><td align="center"><b>This table should have a cyan background color and the text is centralized within each column</b></td><td>Second column, first row</td></tr>*/
@keyframes changeColor
{
0% {background: cyan;}
100% {background: green;}
}
@-moz-keyframes changeColor /* Firefox */
{
0% {background: cyan;}
100% {background: green;}
}
@-webkit-keyframes changeColor /* Safari and Chrome */
{
0% {background: cyan;}
100% {background: green;}
}
#box{
width: 100px;
height: 20px;
background: red;
position: relative;
-webkit-animation: mymove 8s infinite;
animation: mymove 8s infinite;
}
/* Safari 4.0 - 8.0 */
@-webkit-keyframes mymove {
0% { left: 0;}
50%{ left : 100%;}
100%{ left: 0;}
}
/* Standard syntax */
@keyframes mymove {
0% { left: 0;}
50%{ left : 100%;}
100%{ left: 0;}
}
th,td{
text-align: center;
font-weight: bold;
-webkit-animation: color-change 10s ;
-moz-animation: color-change 10s ;
-o-animation: color-change 10s ;
-ms-animation: color-change 10s ;
animation: color-change 10s ;
}
@-webkit-keyframes color-change {
0% { color: black; }
100% { color: white; }
}
@-moz-keyframes color-change {
0% { color: black; }
100% { color: white; }
}
@-ms-keyframes color-change {
0% { color: black; }
100% { color: white; }
}
@-o-keyframes color-change {
0% { color: black; }
100% { color: white; }
}
@keyframes color-change {
0% { color: black; }
100% { color: white; }
}