Wrox Programmer Forums
Go Back   Wrox Programmer Forums > Web Programming > CSS > CSS Cascading Style Sheets
|
CSS Cascading Style Sheets All issues relating to Cascading Style Sheets (CSS).
Welcome to the p2p.wrox.com Forums.

You are currently viewing the CSS Cascading Style Sheets section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old March 22nd, 2006, 07:10 PM
Friend of Wrox
 
Join Date: Aug 2003
Posts: 137
Thanks: 0
Thanked 0 Times in 0 Posts
Default CSS for print - probs with images

I have developed a very graphical website, which current has one stylesheet with the media="all" attribute. I know how to create an optional stylesheet for PRINT. The problem I face is with images.

I created my stylesheet for print, and set all IMAGES to hidden. The problem I have encountered is that although the images are not displayed, the space they resided in remains on the page I print as white space. I was therefore wondering how in CSS I can remove the images from the document flow completely, allowing the text of the page just to be printed to enable me to print large text?

Can anyone offer some advisement or tips on how best to approach this?


Gaz
__________________
Gaz
 
Old March 22nd, 2006, 07:15 PM
Friend of Wrox
 
Join Date: Aug 2003
Posts: 137
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Furthermore, if I have a webpage with x2 cols, with the second col with the main text body, how in a print CSS can I collapse the first col? as the space in first col also gets printed despite having its content hidden

Gaz
 
Old March 22nd, 2006, 07:18 PM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 425
Thanks: 0
Thanked 3 Times in 3 Posts
Default

http://www.w3.org/TR/REC-CSS2/visure...ropdef-display

"none
This value causes an element to generate no boxes in the formatting structure (i.e., the element has no effect on layout). Descendant elements do not generate any boxes either; this behavior cannot be overridden by setting the 'display' property on the descendants."

You may also want to read this article.
http://www.alistapart.com/stories/goingtoprint/

--
http://yupapa.com
 
Old March 23rd, 2006, 09:40 AM
Friend of Wrox
 
Join Date: Aug 2003
Posts: 137
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Thanks for your help :)

Gaz





Similar Threads
Thread Thread Starter Forum Replies Last Post
CSS Print wrapping shenku CSS Cascading Style Sheets 2 May 11th, 2005 10:12 AM
Problem with background images in CSS & Tomcat MW_ CSS Cascading Style Sheets 4 April 12th, 2005 02:41 AM
'Print Background colors and images' crmpicco Javascript How-To 0 January 14th, 2005 10:19 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.