Re: [WSG] Print Media

2004-01-20 Thread Michael Zeltner
Taco Fleur wrote:
With a print media style sheet is it like possible to say hide 
everything but this one ID?
Example; I have a page with many elements, but I want to only print the 
form elements when printing.
no you can't:

http://www.w3.org/TR/REC-CSS2/visuren.html#display-prop

the display property

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.

i don't know how this would look in real life use but i suggest 
violating the specs is bad.

regards, Michael
--
niij http://niij.org/
*
The discussion list for http://webstandardsgroup.org/
* 



Re: [WSG] Print Media

2004-01-20 Thread russ weakley
Taco,

If you set the page up with content inside containers, you can do exactly as
you suggest, and hide entire containers including all of their content. For
example, rather than hide all the elements within a left nav, you could
simple do:

#leftnav { display: none;}

If you page is housed in a series of containers, you could quickly hide
entire sections with a few simple rules.
Russ


 
 I understood that, but I was more after something where I did not have to
 specify every element, with a lot of elements it becomes a bit tedious to
 include all of them, it would be nicer to say, hide all only display ID X.
 
 I guess that’s not possible then..
 
 Taco Fleur
 Blog http://www.tacofleur.com/index/blog/
 Methodology http://www.tacofleur.com/index/methodology/
 0421 851 786
 Tell me and I will forget
 Show me and I will remember
 Teach me and I will learn
 
 
 -Original Message-
 From: russ weakley [mailto:[EMAIL PROTECTED]
 Sent: Tuesday, 20 January 2004 6:24 PM
 To: Web Standards Group
 Subject: Re: [WSG] Print Media
 
 
 Yep, just set all containers or elements that you don¹t need to
 display: none; on the print CSS only.
 
 You can take virtually everything off the page except the
 forms, if you want...
 
 Russ
 
 With a print media style sheet is it like possible to say hide
 everything but this one ID? Example; I have a page with many
 elements, but I want to only print the form elements when printing.
 
 Taco Fleur
 Blog http://www.tacofleur.com/index/blog/
 http://www.tacofleur.com/index/blog/
 Methodology http://www.tacofleur.com/index/methodology/
 0421 851 786
 Tell me and I will forget
 Show me and I will remember
 Teach me and I will learn
 

*
The discussion list for http://webstandardsgroup.org/
*



RE: [WSG] Print Media

2004-01-20 Thread Taco Fleur

Off course, I see what your saying, stupid I did not understand the first
time.
Cheers

Taco Fleur
Blog http://www.tacofleur.com/index/blog/
Methodology http://www.tacofleur.com/index/methodology/
0421 851 786
Tell me and I will forget
Show me and I will remember
Teach me and I will learn 


 -Original Message-
 From: russ weakley [mailto:[EMAIL PROTECTED] 
 Sent: Tuesday, 20 January 2004 7:09 PM
 To: Web Standards Group
 Subject: Re: [WSG] Print Media
 
 
 Taco,
 
 If you set the page up with content inside containers, you 
 can do exactly as you suggest, and hide entire containers 
 including all of their content. For example, rather than hide 
 all the elements within a left nav, you could simple do:
 
 #leftnav { display: none;}
 
 If you page is housed in a series of containers, you could 
 quickly hide entire sections with a few simple rules. Russ
 
 
  
  I understood that, but I was more after something where I 
 did not have 
  to specify every element, with a lot of elements it becomes a bit 
  tedious to include all of them, it would be nicer to say, hide all 
  only display ID X.
  
  I guess that’s not possible then..
  
  Taco Fleur
  Blog http://www.tacofleur.com/index/blog/
  Methodology http://www.tacofleur.com/index/methodology/
  0421 851 786
  Tell me and I will forget
  Show me and I will remember
  Teach me and I will learn
  
  
  -Original Message-
  From: russ weakley [mailto:[EMAIL PROTECTED]
  Sent: Tuesday, 20 January 2004 6:24 PM
  To: Web Standards Group
  Subject: Re: [WSG] Print Media
  
  
  Yep, just set all containers or elements that you don¹t need to
  display: none; on the print CSS only.
  
  You can take virtually everything off the page except the 
 forms, if 
  you want...
  
  Russ
  
  With a print media style sheet is it like possible to say hide 
  everything but this one ID? Example; I have a page with many 
  elements, but I want to only print the form elements when 
 printing.
  
  Taco Fleur
  Blog http://www.tacofleur.com/index/blog/
  http://www.tacofleur.com/index/blog/
  Methodology http://www.tacofleur.com/index/methodology/
  0421 851 786
  Tell me and I will forget
  Show me and I will remember
  Teach me and I will learn
  
 
 *
 The discussion list for http://webstandardsgroup.org/
 * 
 

*
The discussion list for http://webstandardsgroup.org/
*