maxpouliot
08-15-2006, 06:30 PM
hi, i want to specify margins for a page (when printing). in my html code i have
<head>
<title>Imprimer feuilles d'accès</title>
<link rel="stylesheet" type="text/css" media="all" href="../../FeuillesStyles/print.css">
<link rel="stylesheet" type="text/css" media="print" href="../../FeuillesStyles/print.css">
<link href="../default_style.css" rel="stylesheet" type="text/css">
</head>
And in my css file :
@page
{
margin-top:5cm;
margin-bottom:5cm;
margin-left:5cm;
margin-right:5cm
}
#header { display: none;}
#footer {display: none; }
but it doesnt work. Anybody knows how i can do it?
<head>
<title>Imprimer feuilles d'accès</title>
<link rel="stylesheet" type="text/css" media="all" href="../../FeuillesStyles/print.css">
<link rel="stylesheet" type="text/css" media="print" href="../../FeuillesStyles/print.css">
<link href="../default_style.css" rel="stylesheet" type="text/css">
</head>
And in my css file :
@page
{
margin-top:5cm;
margin-bottom:5cm;
margin-left:5cm;
margin-right:5cm
}
#header { display: none;}
#footer {display: none; }
but it doesnt work. Anybody knows how i can do it?