You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
During my life as a web developer it comes often to situation,
where you only need to toggle the "visibility" of some elements.
I use display:none for this situation,
because the hidden element should not take some kind of extra space.
But you need to know the previous state of the display property,
if you want to show the element again with the exact look and feel.
display: flex -> display:none -> should be display:flex...
display: block -> display: none -> should be display:block...
Would it be possible to seperate the visibility and "layout" behaviour
of the display property in future specs?
Hi guys,
first of all, sorry for my bad english...
During my life as a web developer it comes often to situation,
where you only need to toggle the "visibility" of some elements.
I use display:none for this situation,
because the hidden element should not take some kind of extra space.
But you need to know the previous state of the display property,
if you want to show the element again with the exact look and feel.
display: flex -> display:none -> should be display:flex...
display: block -> display: none -> should be display:block...
Would it be possible to seperate the visibility and "layout" behaviour
of the display property in future specs?
Spec: https://www.w3.org/TR/css-display-3/
Cheers and thanks in advance.
Michael
The text was updated successfully, but these errors were encountered: