Results 1 to 4 of 4

Thread: What is the difference between CSS display and visibility

  1. #1
    Join Date
    Feb 2009
    Posts
    51

    What is the difference between CSS display and visibility

    Hi,
    I need some basic examples to get a comparison detail between CSS visibility and display. How to use them both and what are the effects generated by them. Both normal looks similar to me. Also what are the other values that comes to this category. I am making site for a project works where I want to shows up boxes with options in the middle of the page. Thanks in advance.

  2. #2
    Join Date
    Apr 2008
    Posts
    1,948

    Re: What is the difference between CSS display and visibility

    There is a difference between both the CSS tags. The first visibility looks something like this. h2 {visibility:hidden;} and on the other hand display value looks like this p.inline{display:inline;}. Display property is supported by all types of web browser. This both property are used to hide a element on the page. If you assign a hidden or none value respective to the property then the chosen element stays hidden on the page.

  3. #3
    Join Date
    May 2008
    Posts
    2,012

    Re: What is the difference between CSS display and visibility

    There are more property values which comes in the visibile. There are as follows. First visible, this value is the default one. By the element is visible on the page. Then comes hidden which hides the row or column. It is used for tables only. After that you can use collapse. This value show up the hidden element in the page. After that inherit value allows you to get the visibility property of the main element.

  4. #4
    Join Date
    Apr 2008
    Posts
    2,005

    Re: What is the difference between CSS display and visibility

    The values visibility and display are normally used for tables only. Display is supported by all the types of web browsers. In the display value like none gives you an empty element with not box, block will gives you a block box, inline will give you a inline box, inline-block will give you a block box which is laid out as the inline box, then inline table gives you the table, list-item gives you a inline box for the list, run-in gives you a block or inline box that normally depends on the context, etc. There are more values available under display then visibility tag.

Similar Threads

  1. How to set up a system for permanent visibility?
    By Haimi-32 in forum Vista Setup and Install
    Replies: 1
    Last Post: 05-03-2012, 07:50 PM
  2. .htaccess file visibility from Macbook Pro
    By Ishaant Avasthi in forum Technology & Internet
    Replies: 6
    Last Post: 06-11-2010, 10:45 PM
  3. Problem of visibility of the local network on open vpn
    By Lakshmidhar in forum Networking & Security
    Replies: 4
    Last Post: 23-09-2010, 10:51 AM
  4. Tag div and keep style visibility
    By afidelino in forum Windows Software
    Replies: 3
    Last Post: 07-08-2009, 10:43 AM
  5. How to set the css visibility
    By Rebella in forum Software Development
    Replies: 3
    Last Post: 03-08-2009, 01:40 PM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Page generated in 1,714,158,401.22016 seconds with 17 queries