print.css not working
Does anyone know why the print.css file doesn't work. In particular I am trying to use the page-break-before:always property. The desired effect I am looking for is that every h1 has a page break before it because that will help our print outs be nice and organized.
1 person has this problem
I have this problem, too!
Tell me when someone solves it.
The more people who report this problem, the more it gets noticed.
The more people who report this problem, the more it gets noticed.
-
Inappropriate?How are you writing the CSS declaration?
-
Inappropriate?it is an attached file named print.css
-
Inappropriate?I'm sorry I wasn't clear. I mean, how is the declaration itself being written, like:
#displaycontent h1 { some stuff here } -
Inappropriate?oh gotcha this might make it to long but here is the whole thing:
!The decleration in question is the h1!
/*Printing CSS for the pbwiki*/
body {
margin:5px 5px 5px 5px;
background: white;
font-size: 10px;
font-family: Verdana, Arial, Helvetica, sans-serif;
}
#header {
display:none;
}
#sub-menu-top {
display:none;
}
.sub-menu {
display:none;
}
#displayContent {
margin:-250px 0 0 -150px;
background: white;
font-size: 10.5px;
font-family: Verdana, Arial, Helvetica, sans-serif;
border:none;
position:absolute;
top:10px;
left:5px;
right:5px;
bottom:10px;
width:100%;
}
#pageTitle {
margin:-300px 0 0 0;
}
#sub-menu-bottom {
display:none;
}
#page-information {
display:none;
}
#wiki-information {
display:none;
}
#wrapper-functional {
display: none;
}
.sidebar_v2 {
display: none;
}
#wrapper-information {
display: none;
}
#footer {
display: none;
}
h1 {
page-break-before:always;
} -
Inappropriate?First, CSS is case-sensitive, so you'll want to make sure that it's "displaycontent" (all lower case) rather than "displayContent". Also, for the h1 declaration, try:
#displaycontent h1 {
page-break-before:always !important;
}
-
Inappropriate?okay I missed the displayContent part let me try this stuff out and I will get back with you.
I’m happy because I'm getting good help
-
Inappropriate?I guess I am just gonna mark the feature up to broken and not gonna work. Oh well this should be fun.
I’m not real happy
Loading Profile...




