Hi again...
Im trying a diferent approach to my earlier problem, about printing a
header on every page.
Actually, i have a div header with fixed height, and a table Bellow it.
In my print styles, I haave set the header as fixed positioned, and the
header heigh (+ 15) as the margin-top of my table. This works very fine in
Firefox 3.
For MSIE 7, that is ignoring the table margin-top (dont know why) i have
used a hack to set the body padding-top as the value i want to leave for the
header. This fix the view in MSIE7.
Here is my styles:
@media print {
body {
padding: 0 !important;
*padding: 120px 0 0 0 !important; /* MSIE 7 hack! */
}
div.cabecalhoPagina {
position: fixed;
top: 0px;
left: 0px;
width: 100%;
height: 105px;
}
table.tabeladados {
/* ATENÇÃO
Esta margem deve ser aumentada, caso
sejam adicionados mais dados ao cabeçalho,
devendo ser igual a altura do cabeçalho + 15 */
margin-top: 120px !important;
}
}
The problem now is MSIE 8, that recognizes the table margin-top, but only
show it at the first page. Next pages print the table overflowing the
header. The problem persists even if i apply the same IE 7 hack to IE 8, the
padding is applied only to the first Page.
Can someone help me?
__
Paulo Diovani Gonçalves
[email protected]
http://diovani.com
--
--
You received this because you are subscribed to the "Design the Web with CSS"
at Google groups.
To post: [email protected]
To unsubscribe: [email protected]