homepage Welcome to WebmasterWorld Guest from 54.237.98.229
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Become a Pro Member
Home / Forums Index / Code, Content, and Presentation / CSS
Forum Library, Charter, Moderators: not2easy

CSS Forum

    
Using CSS to format for print
Using CSS to format for print
cimbian



 
Msg#: 4362366 posted 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

5+ Year Member



 
Msg#: 4362366 posted 2:46 pm on Sep 14, 2011 (gmt 0)

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

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



 
Msg#: 4362366 posted 3:49 pm on Sep 14, 2011 (gmt 0)

Welcome aboard cimbian . . . Look into

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

One terse example [w3schools.com]

cimbian



 
Msg#: 4362366 posted 4:00 pm on Sep 14, 2011 (gmt 0)

Thank you, that is what I was looking for.

PHP_Idiot

5+ Year Member



 
Msg#: 4362366 posted 4:21 pm on Sep 14, 2011 (gmt 0)

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

cimbian



 
Msg#: 4362366 posted 4:25 pm on Sep 14, 2011 (gmt 0)

:)

Global Options:
 top home search open messages active posts  
 

Home / Forums Index / Code, Content, and Presentation / CSS
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved