Go Back   TechArena Community > Software > Software Development
Become a Member!
Forgot your username/password?
Tags Active Topics RSS Search Mark Forums Read

Reply
 
Thread Tools Search this Thread
  #1  
Old 03-08-2009
Member
 
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.
Reply With Quote
  #2  
Old 03-08-2009
Member
 
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").
Reply With Quote
  #3  
Old 03-08-2009
Member
 
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>
Reply With Quote
  #4  
Old 03-08-2009
Member
 
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.
Reply With Quote
Reply

  TechArena Community > Software > Software Development
Tags: , ,



Thread Tools Search this Thread
Search this Thread:

Advanced Search


Similar Threads for: "How to set the css visibility"
Thread Thread Starter Forum Replies Last Post
How to set up a system for permanent visibility? Haimi-32 Vista Setup and Install 1 05-03-2012 07:50 PM
.htaccess file visibility from Macbook Pro Ishaant Avasthi Technology & Internet 6 06-11-2010 10:45 PM
Problem of visibility of the local network on open vpn Lakshmidhar Networking & Security 4 23-09-2010 10:51 AM
What is the difference between CSS display and visibility Zebaril Software Development 3 02-10-2009 04:40 PM
Tag div and keep style visibility afidelino Windows Software 3 07-08-2009 10:43 AM


All times are GMT +5.5. The time now is 12:59 AM.