Previous Message
Next Message

Media='print' question

Sent by Daniel Keel Romero on 9 December 2004 15:03


Hello,
I did solve the problem with the visibility property. Had to do it this
way since couldn't change the xhtml structure (is generated dynamically).


Thanx to anyone for your help


saludos
daniEL



>>I have  a div which has child-elements. What I don't want to do is print
>>the father element (top most div).  So my first idea was to add to
>>the father element a display:none and only point out the child
>>elements that I want to print.
>>
>>However, this didn't work.
>
> This will never work in CSS.  Once applied, display:none affects all
> child elements regardless of how display is set on the children. [1]
>
> Why do you want to print a child element but not the parent?  If we
> had some idea of what you were trying to accomplish, we might be
> better able to help.  It may be possible, depending on what you are
> doing, to restructure your page to make this work.  Or it may be
> enough to set the parent to visibility: hidden, and the children back
> to visible, depending on your layout. [2]  A URL would help a lot.
>
> [1] <http://www.w3.org/TR/CSS21/visuren.html#display-prop>
> [2] <http://www.w3.org/TR/CSS21/visufx.html#visibility>
>
> --
>
> -Adam Kuehn
> )
> * 18 FETCH (FLAGS (\Seen \Recent))
> A003B OK FETCH completed.
>
______________________________________________________________________
css-discuss [EMAIL-REMOVED]]
http://www.css-discuss.org/mailman/listinfo/css-d
List wiki/FAQ -- http://css-discuss.incutio.com/
Supported by evolt.org -- http://www.evolt.org/help_support_evolt/
Previous Message
Next Message