Hide
I am trying to hide a list item by using the following code (for example)
- Coffee
Solution 1:
Use "display:none" instead of "visibility:hidden"
EDIT: visibility: hidden makes an element invisible but while keeping it in the flow of the DOM, so it still occupies the same space it would if it weren't invisible, meanwhile display: none treats it as if that element isn't there to begin with
Post a Comment for "Hide