visibility:hidden vs display:none

Discussion in 'Javascript' started by VK, Jul 19, 2005.

  1. VK

    VK Guest

    visibility:hidden vs display:none

    I guess I *feel* the difference (or maybe not) Could anyone put it in
    words for me?
     
    VK, Jul 19, 2005
    #1
    1. Advertisements

  2. VK wrote:
    > visibility:hidden vs display:none
    >
    > I guess I *feel* the difference (or maybe not) Could anyone put it in
    > words for me?


    Quick answer:
    visibility: none; the element is still there, still the same size,
    still covering things and taking up space, you just can't see it.

    display: none; it's actually completely collapsed, taking up no space
    and not covering anything.

    Also, the way the attributes affect child elements differs. For more
    detail, I recommend: comp.infosystems.www.authoring.stylesheet
     
    Christopher J. Hahn, Jul 19, 2005
    #2
    1. Advertisements

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. David Freeman
    Replies:
    8
    Views:
    8,285
    tcena9
    Feb 16, 2011
  2. Noozer
    Replies:
    1
    Views:
    3,352
    Noozer
    Mar 13, 2006
  3. Daniel Crespo
    Replies:
    5
    Views:
    546
    Amaury
    Nov 13, 2005
  4. alf
    Replies:
    9
    Views:
    624
  5. Gerald Britton

    <var> is None vs. <var> == None

    Gerald Britton, Jan 23, 2009, in forum: Python
    Replies:
    7
    Views:
    390
    Steve Holden
    Jan 24, 2009
  6. Dan R Brown
    Replies:
    12
    Views:
    604
    Dom Leonard
    Aug 5, 2003
  7. libsfan01
    Replies:
    5
    Views:
    261
    Evertjan.
    Jan 16, 2007
  8. length power
    Replies:
    2
    Views:
    247
    Rustom Mody
    Apr 10, 2014
Loading...