File tree Expand file tree Collapse file tree 2 files changed +45
-12
lines changed Expand file tree Collapse file tree 2 files changed +45
-12
lines changed Original file line number Diff line number Diff line change 4
4
< head >
5
5
< meta charset ="UTF-8 ">
6
6
< title > Fidget Spinner</ title >
7
-
8
-
9
-
10
- < link rel ="stylesheet " href ="css/style.css ">
11
-
12
-
7
+ < link rel ="stylesheet " href ="style.css ">
13
8
</ head >
14
-
15
9
< body >
10
+ < h1 > Fidget Spinner</ h1 >
16
11
< b >
17
12
< font color ="#fa8072 "> Current Speed : < span class ="corner " id ="svalue "> </ span > </ font >
18
13
</ b > < br >
19
- < input type ="text " maxlength ="3 " style =" width: 30px " name ="value " id ='value ' />
20
- < input type ="button " value ="set speed " onclick ="verifyorder() " /> < br >
14
+ < input type ="text " maxlength ="3 " name ="value " id ='value ' class =" enter " />
15
+ < input type ="button " value ="Set Speed " onclick ="verifyorder() " class =" but " style =" cursor: pointer; " /> < br >
21
16
< b >
22
- < font color ="#fa8072 "> --------------------</ font >
17
+ < font color ="#fa8072 " class =" line " > --------------------</ font >
23
18
</ b > < br >
24
19
25
20
Original file line number Diff line number Diff line change 1
1
body {
2
2
margin : 0 ;
3
3
background : # 000 ;
4
+ text-align : center;
4
5
}
5
6
6
7
canvas {
7
8
display : block;
8
9
margin : 0 auto;
10
+ position : relative;
9
11
}
10
-
11
- corner {
12
+ h1 {
13
+ color : # fa8072 ;
14
+ font-size : 2rem ;
15
+ }
16
+ /* .corner{
12
17
position: absolute;
13
18
top: 5px;
14
19
right: 10px;
20
+ } */
21
+ .enter {
22
+ width : 98px ;
23
+ border : none;
24
+ /* position: relative;
25
+ top: 60px; */
26
+ margin-right : 270px ;
27
+ margin-top : 50px ;
28
+ }
29
+ font {
30
+ position : relative;
31
+ top : 47px ;
32
+ font-size : 1.25rem ;
33
+ margin-right : 267px ;
34
+ }
35
+ .line {
36
+ top : -12px ;
37
+ }
38
+ .but {
39
+ width : 100px ;
40
+ height : 50px ;
41
+ border-radius : 5px ;
42
+ background-color : black;
43
+ color : # fa8072 ;
44
+ position : absolute;
45
+ border : 1px solid white;
46
+ cursor : pointer;
47
+ left : 782px ;
48
+ top : 130px ;
49
+ }
50
+ .but : hover {
51
+ background-color : # fa8072 ;
52
+ color : black;
15
53
}
You can’t perform that action at this time.
0 commit comments