Results 1 to 4 of 4
  1. #1
    Senior Member
    Join Date
    Jan 2013
    Location
    Ranchi
    Posts
    205

    What Is The Difference Between “visibility:hidden” And “display:none”?

    display:none will not be available in the page and does not occupy any space.visibility:hidden hides an element, but it will still take up the same space as before. The element will be hidden, but still affect the layout. visibility:hidden preserve the space, whereas display:none doesn't preserve the space.

  2. #2
    Senior Member
    Join Date
    Sep 2017
    Posts
    227
    Using the CSS property/value pair of visibility: hidden hides an element from the browser. however, that hidden element still takes up space in the layout. It's like you have basically made the element invisible, but it still remains in place and takes up the space it would have taken up had it been left alone.

    Unlike the visibility property, which leaves an element in normal document flow,display: none removes the element completely from the document. It does not take up any space, even though the HTML for it is still in the source code. This is because it is, indeed, removed from document flow.

  3. #3
    Registered User
    Join Date
    Nov 2017
    Location
    India
    Posts
    49
    As a web designer I mostly use display none to hide an we'll element completely and our developers prefer to use visit as a place holder and they will make it visible when ever it requires like after placed an order or after logged in.

  4. #4
    Registered User
    Join Date
    May 2016
    Posts
    223
    display:none will not be available in the page and does not occupy any space. visibility:hidden hides an element, but it will still take up the same space as before. The element will be hidden, but still affect the layout. visibility:hidden preserve the space, whereas display:none doesn't preserve the space.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  

  Find Web Hosting      
  Shared Web Hosting UNIX & Linux Web Hosting Windows Web Hosting Adult Web Hosting
  ASP ASP.NET Web Hosting Reseller Web Hosting VPS Web Hosting Managed Web Hosting
  Cloud Web Hosting Dedicated Server E-commerce Web Hosting Cheap Web Hosting


Premium Partners:


Visit forums.thewebhostbiz.com: to discuss the web hosting business, buy and sell websites and domain names, and discuss current web hosting tools and software.