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].

3012 questions
8089
votes
60 answers

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

Is it possible to toggle the visibility of an element, using the functions .hide(), .show() or .toggle()? How would you test if an element is visible or hidden?
Philip Morton
  • 121,023
  • 36
  • 84
  • 96
1258
votes
19 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
  • 33,647
  • 22
  • 66
  • 90
536
votes
44 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
  • 31,862
  • 40
  • 125
  • 178
359
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
  • 52,167
  • 46
  • 207
  • 345
302
votes
3 answers

Difference between Visibility.Collapsed and Visibility.Hidden

What are differences between Visibility.Collapsed and Visibility.Hidden in WPF?
Sauron
  • 15,788
  • 40
  • 119
  • 171
175
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: