-
Notifications
You must be signed in to change notification settings - Fork 5
/
print.css
58 lines (49 loc) · 957 Bytes
/
print.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
46
47
48
49
50
51
52
53
54
55
56
57
58
/* Print CSS reset
Author: @randalmaia
- Remove browser footer and header.
- Set page margin.
*/
@page{
margin:10px;
}
@media print{
/* Set body padding to header and footer */
body{
padding: 40px 0;;
}
/* All unecessary elements */
.your-selectors{
display: none;
}
a[href]:after {
content: " (" attr(href) ")";
}
a[href^="#"]:after,
a[href^="javascript"]:after {
content: "";
}
/* Fix Header and footer class on page */
.footer,
.header {
position: fixed;
top: 0;
left: 0;
height: 40px;
width: 100%;
background-color: white;
margin-left: 25px;
}
.footer{
top: auto;
bottom: 0;
}
@page
counter-increment: page;
counter-reset: page 1;
}
.footer:after {
content: "Page " counter(page) " of " counter(pages);
color: blue;
float: right;
}
}