Should look like:
(input
s, span
s and div
s have display: none;
)
xmp
tag superb?? ;)
^- Content added by javascript. BTW IE does it pertty ugly…
Every initially inline
element which is hidden by display: none
forces IE6 to render surrounding spaces.
Weird is that block elements (div
s) do not cause that.
Just force them to be excluded from document flow by position: absolute
.
IF IE6 knew attribute selector, it would be just input[type=hidden] { position: absolute; }
.
Would be quite difficult. In the real world you have to select theese elements other way (extra class?). Javascript repeater (see below), or maybe some weird IE only CSS expression?