Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What's the equivalent of Css "display:none" in flex?

I tried this way,but not working:

<mx:Box includeInLayout="false" visible="false">

How to achieve the same as display:none?

like image 761
ollydbg Avatar asked Nov 03 '10 13:11

ollydbg


People also ask

What is the difference between display flex and display none in CSS?

In the CSS > . description section I use both display: none (required by JQuery so that the div is initially hidden) and display: flex (used to center the content nicely). But when the two are combined the last display property is read and display: none is ignored.

What is the opposite of CSS display none?

display: none doesn't have a literal opposite like visibility:hidden does. The visibility property decides whether an element is visible or not. It therefore has two states ( visible and hidden ), which are opposite to each other.

How do I show display none in CSS?

getElementById("element"). style. display = "none"; To show an element, set the style display property to “block”.


1 Answers

The only way to completely hide a flex component like display:none is to set the 2 properties together

  1. includeInLayout
  2. visible

Only the 2 together combined, will result in display:none.

visible=false alone will result in visibility:hidden

like image 63
KensoDev Avatar answered Sep 30 '22 03:09

KensoDev