Questions tagged [visibility]

Visibility is an attribute of an object. It may refer to the concept of having something visible (or not) on the graphical interface, or a symbol visibility in linkage. This tag should not be used in place of the more specific tags [tag:memory-visibility] or [tag:class-visibility].

3181 questions
8613
votes
65 answers

How do I check if an element is hidden in jQuery?

How do I toggle the visibility of an element using .hide(), .show(), or .toggle()? How do I test if an element is visible or hidden?
Philip Morton
  • 129,733
  • 38
  • 88
  • 97
1379
votes
21 answers

What is the difference between visibility:hidden and display:none?

The CSS rules visibility:hidden and display:none both result in the element not being visible. Are these synonyms?
Chris Noe
  • 36,411
  • 22
  • 71
  • 92
558
votes
45 answers

How to check visibility of software keyboard in Android?

I need to do a very simple thing - find out if the software keyboard is shown. Is this possible in Android?
fhucho
  • 34,062
  • 40
  • 136
  • 186
393
votes
6 answers

Equivalent of jQuery .hide() to set visibility: hidden

In jQuery, there are .hide() and .show() methods which sets the CSS display: none setting. Is there an equivalent function which would set the visibility: hidden setting? I know I can use .css() but I prefer some function like .hide() or so.…
Tomas
  • 57,621
  • 49
  • 238
  • 373
324
votes
4 answers

Difference between Visibility.Collapsed and Visibility.Hidden

What are differences between Visibility.Collapsed and Visibility.Hidden in WPF?
Sauron
  • 16,668
  • 41
  • 122
  • 174
186
votes
12 answers

DataTrigger where value is NOT null?

I know that I can make a setter that checks to see if a value is NULL and do something. Example: