Results 1 to 4 of 4

Thread: How to set the css visibility

  1. #1
    Join Date
    Apr 2009
    Posts
    61

    How to set the css visibility

    How to set the property controls for CSS visible Yes or No whether the content of an element box is rendered, The problem I'm having is that I would like for the menus to default to the 'open' position, rather than the 'closed' posistion as they do in the article. Please provide me the property to set the visibility for CSS.

  2. #2
    Join Date
    Oct 2008
    Posts
    127

    Re: How to set the css visibility

    It's fairly easy to confuse the Cascading Style Sheets (CSS) properties display and visibility, because it would seem that they do much the same thing. The element box is invisible (completely transparent to content beneath), but still affects document layout flow as if it were visible. However, the two properties are in fact quite different. The visibility property determines whether a given element is visible or not (visibility="visible|hidden").

  3. #3
    Join Date
    Dec 2008
    Posts
    161

    Re: How to set the css visibility

    Only for table elements. collapse removes a row or column, but it does not affect the table layout. The space taken up by the row or column will be available for other content.

    Code:
    <script language="JavaScriptDisplay">
    	function toggleVisibility(id){
    		if (id.style.visibility=="hidden"){
    			id.style.visibility="visible";
    			}
    		else {
    			id.style.visibility="hidden";
    			}
    		}
    </script>

  4. #4
    Join Date
    Feb 2009
    Posts
    105

    Re: How to set the css visibility

    A property called visibility allows you to hide an element from view. You can use this property alongwith Javascript to create very complex menu and very complex webpage layouts. So, you certainly don't want google indexing some lone frame. The display property, on the other hand, works a little differently. But an iframe, that's simple another document in a document, as an inline element, without a frameset, so as long as your main page has an anchor which links to the iframe, I would think Google could access that no problem.

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. What is the difference between CSS display and visibility
    By Zebaril in forum Software Development
    Replies: 3
    Last Post: 02-10-2009, 04:40 PM
  5. Tag div and keep style visibility
    By afidelino in forum Windows Software
    Replies: 3
    Last Post: 07-08-2009, 10:43 AM

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,206,325.36119 seconds with 17 queries