Welcome to WebmasterWorld Guest from 54.163.23.73

Forum Moderators: not2easy

Message Too Old, No Replies

Using CSS to format for print

Using CSS to format for print

     

cimbian

1:16 pm on Sep 14, 2011 (gmt 0)



Hi, first posting... Forum looks really good.

I have a few fairly straight-forward HTML sites formatted by CSS but would like to create an alternative format for printing.

Any thoughts on how this is done or the alternative CSS invoked?

Steve

PHP_Idiot

2:46 pm on Sep 14, 2011 (gmt 0)

5+ Year Member



There are probably much cleverer answers but I just made plain text versions with no templates, colours or styling at all, and direct linked to them.
You could do it with css and I suppose it depends on how many pages you have that you want printable, as mine are all dynamically generated I have one extra plain page with all the script I need for the dynamic data to be generated.

rocknbil

3:49 pm on Sep 14, 2011 (gmt 0)

WebmasterWorld Senior Member rocknbil is a WebmasterWorld Top Contributor of All Time 10+ Year Member



Welcome aboard cimbian . . . Look into

@media print {
/* Print only selectors apply here */
}

One terse example [w3schools.com]

cimbian

4:00 pm on Sep 14, 2011 (gmt 0)



Thank you, that is what I was looking for.

PHP_Idiot

4:21 pm on Sep 14, 2011 (gmt 0)

5+ Year Member



lol told you there would be a smarter answer, might look at that myself!

cimbian

4:25 pm on Sep 14, 2011 (gmt 0)



:)