Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
Re: Printing stylesheet
Something like this:
<code>
a:link: after, a:visited: after {
content: “ (” attr(href) “) “;
font-size: 90%;
}
</code>
is supposed to work. But I haven’t gotten it to work, yet. Anyone care to comment?
Search is your friend… Think before writing…
Offline
Re: Printing stylesheet
Last time I checked, browser support for generated content was crap. I’d expect that it’ll work in Opera, but I don’t know of anything else that supports it.
Last edited by ubernostrum (2005-02-14 20:14:34)
You cooin’ with my bird?
Offline
Re: Printing stylesheet
It would be interesting to test a few and see what they do. I might have to do that on my weblog and see what’s up. Thanks.
Search is your friend… Think before writing…
Offline
#16 2005-02-14 21:13:27
- smurfgasm
- New Member
- Registered: 2004-09-21
- Posts: 6
Re: Printing stylesheet
It’s worth checking it out, even if it doesn’t work cross-browser then it’ll benefit some people at least.
Another reason to switch :)
Offline
#17 2005-11-19 15:24:04
- -rr-
- Member
- Registered: 2005-09-11
- Posts: 73
Re: Printing stylesheet
> Etz Haim wrote:
> Add a new stylesheet named “print” and on the head of your page template put the following:
<link rel="stylesheet" media="print" href="<txp:css n="print" />" type="text/css" />
I’ve done this but for some reason I always get the same result for printing (which is different from the screen style). No matter what settings I change for the print css it still comes out the same.
Is there a setting somewhere that I need to switch for Textpattern to start using the print css? I can’t figure this out.
Last edited by -rr- (2005-11-19 15:29:29)
Offline
#18 2005-11-20 03:41:54
- aesop1
- Archived Plugin Author
- Registered: 2004-09-19
- Posts: 142
Re: Printing stylesheet
Another trick I use is to include a div that has an image (usually a logo) but one that is made especially for printing. For screen.css, display: none for the printable div and then the screen logo is displayed and vice versa for the print.css stylesheet.
This is useful for screen layouts where you have the logo against a colored background, but just want the background to drop out for print.
Offline
#19 2005-11-22 20:22:35
- -rr-
- Member
- Registered: 2005-09-11
- Posts: 73
Re: Printing stylesheet
HELP!!!! Something must be wrong. I’ve set up the print and screen css layouts in the page head within Textpattern as described here, even tried them from external css files, but everything always prints out exactly the same way which resembles neither (like plain default html)… ??? I can’t even get a printout that resembles my default screen layout.
Where’s the catch? Any ideas, anybody? I can’t figure this out!
Last edited by -rr- (2005-11-22 20:50:09)
Offline
#20 2005-11-23 00:21:58
- zem
- Developer Emeritus
- From: Melbourne, Australia
- Registered: 2004-04-08
- Posts: 2,579
Re: Printing stylesheet
rr,
Post a link please.
Alex
Offline
#21 2005-11-24 21:03:13
- zem
- Developer Emeritus
- From: Melbourne, Australia
- Registered: 2004-04-08
- Posts: 2,579
Re: Printing stylesheet
rr,
I think this is just an issue with your CSS. Textpattern is serving up your ‘print’ stylesheet, and it’s applied to the document (at least it is for me in Firefox’s Print Preview screen). If you’re not seeing what you expect to see, you’ll need to work on the CSS some more. There’s a separate forum for that.
Alex
Offline
#22 2005-11-25 01:28:35
- -rr-
- Member
- Registered: 2005-09-11
- Posts: 73
Re: Printing stylesheet
If the screen CSS works and if I set it to be used for print too, why does the print preview show nothing like it. I don’t get it. What can I do in CSS to change the situation?
Offline
#23 2005-11-25 01:30:38
- zem
- Developer Emeritus
- From: Melbourne, Australia
- Registered: 2004-04-08
- Posts: 2,579
Re: Printing stylesheet
You’re probably better off with a new post in the CSS forum.
Alex
Offline
#24 2005-11-25 12:07:48
- -rr-
- Member
- Registered: 2005-09-11
- Posts: 73
Re: Printing stylesheet
I fiddled around with the headers and I have absolutely no idea what has changed, but it seems to work now. ??? Thanks and sorry for the trouble.
Last edited by -rr- (2005-11-25 12:21:47)
Offline