HighDots Forums  

help with visibility for projection media (OperaShow)

Cascading Style Sheets Layout/presentation on the WWW (comp.infosystems.www.authoring.stylesheets)


Discuss help with visibility for projection media (OperaShow) in the Cascading Style Sheets forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Timothy Larson
 
Posts: n/a

Default help with visibility for projection media (OperaShow) - 02-12-2009 , 12:57 AM






Hello!

I want to create a document to be used in a presentation, but will full notes
included for review later. I thought this would be as simple as setting up a
few rules in an @media projection block. My basic idea is to make an outline
from the H# tags and suppress everything else.

* { display:none; } /* Turn off everything! Then turn on only elements
we want to see. */
h1,h2 { display:block; }
h2 { page-break-before:always; }
h3,h4,h5,h6 { display:list-item; }

Unfortunately, in projection mode nothing shows up. I thought the specificity
of any explicit tag would be more than *, and even if not, they should take
precedence since they come later. I've reviewed the spec and am pretty sure I
am right. What am I doing wrong? Or is Opera 9.5 wrong?

Thanks,
Tim

Reply With Quote
  #2  
Old   
Ben C
 
Posts: n/a

Default Re: help with visibility for projection media (OperaShow) - 02-12-2009 , 03:48 AM






On 2009-02-12, Timothy Larson <thelarsons3 (AT) cox (DOT) net> wrote:
Quote:
Hello!

I want to create a document to be used in a presentation, but will full notes
included for review later. I thought this would be as simple as setting up a
few rules in an @media projection block. My basic idea is to make an outline
from the H# tags and suppress everything else.

* { display:none; } /* Turn off everything! Then turn on only elements
we want to see. */
h1,h2 { display:block; }
h2 { page-break-before:always; }
h3,h4,h5,h6 { display:list-item; }

Unfortunately, in projection mode nothing shows up. I thought the specificity
of any explicit tag would be more than *, and even if not, they should take
precedence since they come later. I've reviewed the spec and am pretty sure I
am right. What am I doing wrong? Or is Opera 9.5 wrong?
The problem is the BODY element and the HTML element, and anything else
that may be outside your headings, are still display: none.

If something's display: none it takes all its children with it,
regardless of what value they have for display. This is usually what you
want-- otherwise to make something disappear you'd have to recursively
change display on all its children.

You can use visibility here though. Set BODY or HTML to visibility:
hidden. All its descendents will inherit that in the CSS sense, but it
can be overridden.

So h1 { visibility: visible } will make the headings re-appear out of
the ether.


Reply With Quote
  #3  
Old   
Harlan Messinger
 
Posts: n/a

Default Re: help with visibility for projection media (OperaShow) - 02-12-2009 , 10:45 AM



Ben C wrote:
Quote:
On 2009-02-12, Timothy Larson <thelarsons3 (AT) cox (DOT) net> wrote:
Hello!

I want to create a document to be used in a presentation, but will full notes
included for review later. I thought this would be as simple as setting up a
few rules in an @media projection block. My basic idea is to make an outline
from the H# tags and suppress everything else.

* { display:none; } /* Turn off everything! Then turn on only elements
we want to see. */
h1,h2 { display:block; }
h2 { page-break-before:always; }
h3,h4,h5,h6 { display:list-item; }

Unfortunately, in projection mode nothing shows up. I thought the specificity
of any explicit tag would be more than *, and even if not, they should take
precedence since they come later. I've reviewed the spec and am pretty sure I
am right. What am I doing wrong? Or is Opera 9.5 wrong?

The problem is the BODY element and the HTML element, and anything else
that may be outside your headings, are still display: none.

If something's display: none it takes all its children with it,
regardless of what value they have for display. This is usually what you
want-- otherwise to make something disappear you'd have to recursively
change display on all its children.

You can use visibility here though. Set BODY or HTML to visibility:
hidden. All its descendents will inherit that in the CSS sense, but it
can be overridden.

So h1 { visibility: visible } will make the headings re-appear out of
the ether.
The problem with visibility: hidden is that the invisible elements
continue to occupy the same space they would have occupied if they were
visible.


Reply With Quote
  #4  
Old   
Timothy Larson
 
Posts: n/a

Default Re: help with visibility for projection media (OperaShow) - 02-13-2009 , 01:04 AM



Ben C wrote:
Quote:
The problem is the BODY element and the HTML element, and anything else
that may be outside your headings, are still display: none.
Doh! You are absolutely correct. I set HTML and BODY to display:block, and
now things are beginning to work as I thought they should. Thanks!


Tim


Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.