javascript - Can I hide all text in a page independently from parent elements? -
i'd know how hide/show text in webpage js or css without hiding containing elements.

i've looked , looked , can't find how this. is possible?
obviously go around adding spans text. i'm looking shortcut, involving text nodes or css solution.
edit: if not, simple work-around same effect? i've noticed can use rgba opacity 0 achieve effect without adding container elements. problem is, affects borders too. font-color:color useful css feature here...
you can make text invisible using 1 line of css:
body.hidetext { font-size: 0px !important; } -- toggle hidetext class:
$('body').toggleclass('hidetext'); (note more specific font-size: !important elsewhere in css override one, however, may not flawless solution.)
Comments
Post a Comment