|
| |
|
|
Toolman
Posts: 203 Joined: 3/14/2002 From: United Kingdom Status: offline
|
CSS - 3/28/2003 12:07:51
Is it possible to specify a selected area of a page using a style sheet so that I can then use that sheet when printing off a page. Thanks
_____________________________
Toolman " ....It was like that when I got Here!"
|
|
|
|
Justjay
Posts: 697 From: Montreal, QC Canada Status: offline
|
RE: CSS - 3/28/2003 15:38:12
Design 2 CSS for your site... #1 - for screen/monitor #2 - for print Then put these in between your head tags... <link rel=" stylesheet" type=" text/css" href=" ../style/style.css" media=" screen" >
<link rel=" stylesheet" type=" text/css" href=" ../style/print.css" media=" print" > -- you can also use @import if you want.....with some limitations in NN And here in an article describing the whole process...
_____________________________
JustJay thejehm.net Web Solutions SAH Link Exchange Serious About Hosting
|
|
|
|
Toolman
Posts: 203 Joined: 3/14/2002 From: United Kingdom Status: offline
|
RE: CSS - 4/2/2003 4:29:46
Sorry no. This is an intranet and not internet site. Thanks
_____________________________
Toolman " ....It was like that when I got Here!"
|
|
|
|
Justjay
Posts: 697 From: Montreal, QC Canada Status: offline
|
RE: CSS - 4/2/2003 10:42:38
PHP runs on *nix servers, ASP (MS) runs on IIS, Apache ASP runs on Apache *nix servers, FPSE are FrontPage server extensions. Well me last suggestion to get just a certain part of a page to work is to use the PRINT ALTERNATE document tag. What you need to do is create a different page with ONLY the data you want users/visitors to be able to print, then add this tag into the <head> of your file -- <link rel=alternate media=print href=" _print/print.htm" > --the part in bold you need to change to reflect where your alternate document is.... HTH
< Message edited by justjay -- 4/2/2003 10:43 AM >
_____________________________
JustJay thejehm.net Web Solutions SAH Link Exchange Serious About Hosting
|
|
|
|
SerenityNet
Posts: 1364 Joined: 6/12/2001 From: Allen, TX, USA Status: offline
|
RE: CSS - 4/3/2003 1:23:02
quote:
<link rel=alternate media=print href=" _print/print.htm" > This link would be way cool, but when I put it in a page then I just can' t print. The print dialog won' t open from the File menu. The print buttons do nothing. I can' t even open the Print Preview. It' s doing something, but what? This is all in IE6. With NS7 I can print, but it just prints the page I told it to print; not the alternate page. I' ve tried it with htm, asp, and php extensions. The tag is within the <head> tags. Ideas? Andrew
_____________________________
</Chaos, panic, & disorder - my work here is done.>
|
|
|
|
SerenityNet
Posts: 1364 Joined: 6/12/2001 From: Allen, TX, USA Status: offline
|
RE: CSS - 4/3/2003 10:26:37
Yes. Here is the code for page one: <html>
<head>
<title>Printer Friendly Printing</title>
<link rel=alternate media=print href=" PageToPrint.htm" >
</head>
<body>
<p><b><font color=" #000080" >Try to print this page and you should really print <a href=" PageToPrint.htm" >this
one</a>.</font></b></p>
<p><b><font color=" #000080" >See JustJay' s post on <a href=" http://www.frontpagewebmaster.com/tm.asp?m=127056" >this</a>
thread.</font></b></p>
</body>
</html> Here is the code for page two (the one to print): <html>
<head>
<title>Page to Print</title>
</head>
<body>
<p><font color=" #000080" ><b>This is the page that should print when you try to
print the OpenMeFirst.htm document.</b></font></p>
<p>The quick brown fox jumped over the lazy dog. The quick brown fox
jumped over the lazy dog. The quick brown fox jumped over the lazy
dog. The quick brown fox jumped over the lazy dog. The quick brown
fox jumped over the lazy dog. The quick brown fox jumped over the lazy
dog. The quick brown fox jumped over the lazy dog. The quick brown
fox jumped over the lazy dog. The quick brown fox jumped over the lazy
dog. </p>
</body>
</html> What have I missed? Thanks, Andrew
_____________________________
</Chaos, panic, & disorder - my work here is done.>
|
|
|
|
Gil
Posts: 7533 From: North Carolina, USA Status: offline
|
RE: CSS - 4/3/2003 12:37:34
The example at the link I posted above worked perfect for me...
_____________________________
Gil Harvey, 1947-2004
|
|
|
|
SerenityNet
Posts: 1364 Joined: 6/12/2001 From: Allen, TX, USA Status: offline
|
RE: CSS - 4/3/2003 14:36:01
Same thing - neither the print button nor File/Print works. Nothing happens - no dialog, no error, nothing. Could it be a browser setting?
_____________________________
</Chaos, panic, & disorder - my work here is done.>
|
|
|
|
Justjay
Posts: 697 From: Montreal, QC Canada Status: offline
|
RE: CSS - 4/3/2003 14:45:12
Well I am thinking it is...and I would have NO idea where to begin, because I KNOW FOR A FACT that Gil turns off just about everything and I leave just about everything on.... Gill -- you want to hazard a guess?
_____________________________
JustJay thejehm.net Web Solutions SAH Link Exchange Serious About Hosting
|
|
|
|
Gil
Posts: 7533 From: North Carolina, USA Status: offline
|
RE: CSS - 4/3/2003 14:49:09
No idea - works here w/ IE, NN & Opera
_____________________________
Gil Harvey, 1947-2004
|
|
|
|
SerenityNet
Posts: 1364 Joined: 6/12/2001 From: Allen, TX, USA Status: offline
|
RE: CSS - 4/3/2003 15:36:33
Hmmmm again. I tried it from my work PC (I' m working from home today) - same firewall, same version of IE, just running through VPN is about the only difference. I' m running Win2K on both PC' s. It works on my work laptop, but not my home desktop. However, it does take about 30 seconds for the print dialog to appear. Also, I don' t get the error on my work PC. Does this give you any ideas?
_____________________________
</Chaos, panic, & disorder - my work here is done.>
|
|
|
|
SerenityNet
Posts: 1364 Joined: 6/12/2001 From: Allen, TX, USA Status: offline
|
RE: CSS - 4/3/2003 23:20:34
quote:
I think you broke the Internet Please don' t tell Al Gore. The inventor might stone me with chads. Thanks for the help. I' ll check it out when I have more time.
_____________________________
</Chaos, panic, & disorder - my work here is done.>
|
|
New Messages |
No New Messages |
Hot Topic w/ New Messages |
Hot Topic w/o New Messages |
Locked w/ New Messages |
Locked w/o New Messages |
|
Post New Thread
Reply to Message
Post New Poll
Submit Vote
Delete My Own Post
Delete My Own Thread
Rate Posts
|
|
|