View Full Version : Block if visibility
jont
15-Jul-2006, 04:00 PM
When a Block if condition is false it in effect sets the equivalent of display:none (in CSS terms) ... this is causing issues with layout ... is it possible to use the Block if with display:hidden to maintain white space formatting?
Hoping not to have to hack around setting more CSS values :rolleyes:
wjcampbe
15-Jul-2006, 04:19 PM
Might be a solution to have a second block if for the opposite condition - in effect a block else :)
jont
16-Jul-2006, 12:40 PM
More blocks than Lego :)
Assuming the concept works (not at a Actinic machine) how could the containing Block If know how much space to re-alloacte back to the page as white space :confused:
Think probably best to stick to CSS and position the elements so if one is removed from the flow the others do not occupy the space.
wjcampbe
16-Jul-2006, 12:54 PM
My thinking was
Block if evaluates true and occupies a x b space
Block if not evaluates false and does nothing
or
Block if evaluates false and does nothing
Block if not evaluates true and occupies a x b space (same dimensions)
Unless we have something that isn't NOT when it is NOT is - like < 0, > 0 and = 0.
You're probably right, CSS positioning is likely easier :)
cdicken
17-Jul-2006, 10:07 AM
You can use block ifs in the CSS file if that's any help.
vBulletin® v3.8.4, Copyright ©2000-2012, Jelsoft Enterprises Ltd.