HighDots Forums  

Re: visibility:hidden vs display:none

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


Discuss Re: visibility:hidden vs display:none in the Cascading Style Sheets forum.



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

Default Re: visibility:hidden vs display:none - 04-05-2009 , 10:42 PM






In article <79263322648.8554256396.39908 (AT) news (DOT) altopia.com>,
darius <noone (AT) here (DOT) invalid> wrote:

Quote:
Is there a subtle difference between visibility:hidden vs
display:none ?

Not so subtle really. The former means it is there but cannot be seen.
The latter means it is not there at all as can be proved by trying to
set display: inline on the descendants.

Changing body {... display: none;} in

1. http://tinyurl.com/ccyos4

to body {... visibility: hidden;} gets you

2. http://tinyurl.com/c8565d

'display: none' causes an element to generate no boxes whereas
'visibility: hidden; causes the generated box to be invisible (fully
transparent, nothing is drawn).

Descendants of elements set with ''display: none' cannot be overridden
with display: inline - because they are simply gone (like granny). But a
'visibility: hidden' element's descendants can be made to appear by
'visibility: visible'.

--
dorayme


Reply With Quote
  #2  
Old   
Evertjan.
 
Posts: n/a

Default Re: visibility:hidden vs display:none - 04-06-2009 , 03:25 AM






dorayme wrote on 06 apr 2009 in comp.infosystems.www.authoring.stylesheets:

Quote:
But a
'visibility: hidden' element's descendants can be made to appear by
'visibility: visible'.
I knew that somehow, but now I realize I should make more use of this!


--
Evertjan.
The Netherlands.
(Please change the x'es to dots in my emailaddress)


Reply With Quote
  #3  
Old   
dorayme
 
Posts: n/a

Default Re: visibility:hidden vs display:none - 04-06-2009 , 06:18 AM



In article <Xns9BE55FDDB95E2eejj99 (AT) 194 (DOT) 109.133.242>,
"Evertjan." <exjxw.hannivoort (AT) interxnl (DOT) net> wrote:

Quote:
dorayme wrote on 06 apr 2009 in comp.infosystems.www.authoring.stylesheets:

But a
'visibility: hidden' element's descendants can be made to appear by
'visibility: visible'.

I knew that somehow, but now I realize I should make more use of this!
(Take a look at the link I gave you and you can use this there to
progressively makes things appear in the list within list html).

Visibility: hidden is like an invisible man in a room, you can't occupy
his space (btw, he will also eat half your food if you are dining
together. I have experience of this, don't ask) but display: none is
more like a ghost, you can sit on the same chair as he does and he won't
eat half your food no matter how much he eats (again, trust me, I know).

--
dorayme


Reply With Quote
  #4  
Old   
Evertjan.
 
Posts: n/a

Default Re: visibility:hidden vs display:none - 04-06-2009 , 06:54 AM



dorayme wrote on 06 apr 2009 in
comp.infosystems.www.authoring.stylesheets:

Quote:
In article <Xns9BE55FDDB95E2eejj99 (AT) 194 (DOT) 109.133.242>,
"Evertjan." <exjxw.hannivoort (AT) interxnl (DOT) net> wrote:

dorayme wrote on 06 apr 2009 in
comp.infosystems.www.authoring.stylesheets:

But a
'visibility: hidden' element's descendants can be made to appear by
'visibility: visible'.

I knew that somehow, but now I realize I should make more use of
this!

(Take a look at the link I gave you and you can use this there to
progressively makes things appear in the list within list html).
I am not the OP, just an intruder!


Quote:
Visibility: hidden is like an invisible man in a room, you can't
occupy his space (btw, he will also eat half your food if you are
dining together. I have experience of this, don't ask) but display:
none is more like a ghost, you can sit on the same chair as he does
and he won't eat half your food no matter how much he eats (again,
trust me, I know).



--
Evertjan.
The Netherlands.
(Please change the x'es to dots in my emailaddress)


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.