Forum Moderators: not2easy
<link rel="stylesheet" type="text/css" media="print" href="print.css" />
<link rel="stylesheet" type="text/css" media="screen" href="screen.css" />
print.css:
@media print{
body{font-family: arial; font-size: 6pt; width: 30%; border-width: 1px; border-style: dashed;}
.trans{visibility: hidden; position: absolute; bottom: 0; right: 0;}
}
screen.css:
@media screen{
body{font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 12px;}
h1{color:#FF0000; font-size: 14px;}
}
now i'm not even sure if i've created the print.css and screen.css files correctly (i'm just assuming i have and made the suggested change)...if there is anything wrong with the way i have my css files written, please let me know...
this is driving me crazy... ;)
any thoughts?
<link rel="stylesheet" type="text/css" media="screen" href="screen.css" />
<link rel="stylesheet" type="text/css" media="print" href="print.css" />
screen.css:
div#main{font-family: Arial, Helvetica, sans-serif; font-size: 12px;}
h1{color:#FF0000; font-size: 14px;}
print.css:
div#main{font-family: Arial; font-size: 4pt; width: 15em; border-width: 1px; border-style: dashed;}
.trans{visibility: hidden; position: absolute; bottom: 0; right: 0;}
the div#main controls the body:
<body><div id="main"></div></body>