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

3108 questions
8447
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
  • 126,957
  • 37
  • 88
  • 97
1340
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
  • 35,533
  • 22
  • 69
  • 90
553
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
  • 33,427
  • 40
  • 129
  • 184
387
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
  • 55,628
  • 48
  • 230
  • 364
318
votes
3 answers

Difference between Visibility.Collapsed and Visibility.Hidden

What are differences between Visibility.Collapsed and Visibility.Hidden in WPF?
Sauron
  • 16,382
  • 41
  • 120
  • 172
185
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: