-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathtopbotm.css
42 lines (38 loc) · 1.59 KB
/
topbotm.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
#topBtn {
display: none; /* Hidden by default */
position: fixed; /* Fixed/sticky position */
bottom: 20px; /* Place the button at the bottom of the page */
right: 30px; /* Place the button 30px from the right */
z-index: 99; /* Make sure it does not overlap */
border: none; /* Remove borders */
outline: none; /* Remove outline */
background-color: red; /* Set a background color */
color: white; /* Text color */
cursor: pointer; /* Add a mouse pointer on hover */
padding: 10px 15px; /* Some padding */
border-radius: 10px; /* Rounded corners */
font-size: 18px; /* Increase font size */
transition: ease all 0.5s; /* Add smoothing when hover */
}
#topBtn:hover {
background-color: #555; /* Add a dark-grey background on hover */
}
#bottomBtn {
display: block; /* Shown by default - change to 'none' to hide */
position: fixed; /* Fixed/sticky position */
top: 99px; /* Place the button at the bottom of the page */
right: 30px; /* Place the button 30px from the right */
z-index: 99; /* Make sure it does not overlap */
border: none; /* Remove borders */
outline: none; /* Remove outline */
background-color: red; /* Set a background color */
color: white; /* Text color */
cursor: pointer; /* Add a mouse pointer on hover */
padding: 10px 15px; /* Some padding */
border-radius: 10px; /* Rounded corners */
font-size: 18px; /* Increase font size */
transition: ease all 0.5s; /* Add smoothing when hover */
}
#bottomBtn:hover {
background-color: #555; /* Add a dark-grey background on hover */
}