File tree Expand file tree Collapse file tree 2 files changed +12
-2
lines changed Expand file tree Collapse file tree 2 files changed +12
-2
lines changed Original file line number Diff line number Diff line change 30
30
.print-button {
31
31
display : none;
32
32
}
33
- }
33
+ }
34
+
35
+
36
+ .print-button {
37
+ float : right; /* Moves the button to the right */
38
+ margin-left : 1em ; /* Adds spacing from the content */
39
+ padding : 0.5em 1em ; /* Padding for better aesthetics */
40
+ border : none; /* Remove border */
41
+ border-radius : 4px ; /* Rounded corners */
42
+ cursor : pointer; /* Change cursor on hover */
43
+ }
Original file line number Diff line number Diff line change @@ -7,6 +7,6 @@ document.addEventListener('DOMContentLoaded', function () {
7
7
printButton . addEventListener ( 'click' , function ( ) {
8
8
window . print ( ) ;
9
9
} ) ;
10
- header . after ( printButton ) ; // Add the button after the title
10
+ header . before ( printButton ) ; // Add the button after the title
11
11
}
12
12
} ) ;
You can’t perform that action at this time.
0 commit comments