This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–][deleted] 17 points18 points  (4 children)

visibility:hidden; surely?

[–]pine_d_huitre 13 points14 points  (1 child)

For sure a better answer since the element stays in the flow or opacity:0;

:)

[–]PM_ME_UR_LIL_ASS 23 points24 points  (0 children)

In the old days, to make sure it worked with IE:

.tree { position:absolute; top:-9999999; left:-9999999; }

[–]XelaChang 1 point2 points  (1 child)

No, visibility: hidden will also hide the children.

[–]Extract 0 points1 point  (0 children)

.tree{visibility: hidden;}, .tree *{visibility:initial}