Hiding the tag box

11 views
Skip to first unread message

LoB

unread,
Jan 24, 2008, 9:13:23 AM1/24/08
to TiddlyWiki
Hello again,

How do I go about making the tag box invisible unless it's hovered
over?

Thanks,

Eric

FND

unread,
Jan 24, 2008, 9:33:52 AM1/24/08
to Tiddl...@googlegroups.com
> How do I go about making the tag box invisible unless it's hovered
> over?

Well, making it only appear when the mouse pointer is over the invisible
box might be tricky (and not very user-friendly).

However, you could make it disappear when the mouse pointer is not
hovering over the respective *tiddler* - try adding the following code
to your StyleSheet (shadow) tiddler:
.tiddler .tagged {
visibility: hidden;
}
.selected .tagged {
visibility: visible;
}
(You could also try "display: none/block;" instead of "visibility:
hidden/visible;" - this usually doesn't make much of a difference though.)

HTH.


-- F.

Eric Shulman

unread,
Jan 24, 2008, 10:18:32 AM1/24/08
to TiddlyWiki
> (You could also try "display: none/block;" instead of "visibility:
> hidden/visible;" - this usually doesn't make much of a difference though.)


"visibility" only affects the display of the element, but not the
layout surrounding it... "display", on the other hand, not only hides
the element, it also re-flows the content surrounding it to re-use the
space that element occupies.


-e

LoB

unread,
Jan 24, 2008, 1:04:53 PM1/24/08
to TiddlyWiki

> However, you could make it disappear when the mouse pointer is not
> hovering over the respective *tiddler* - try adding the following code
> to your StyleSheet (shadow) tiddler:
> .tiddler .tagged {
> visibility: hidden;
> }
> .selected .tagged {
> visibility: visible;
> }
> (You could also try "display: none/block;" instead of "visibility:
> hidden/visible;" - this usually doesn't make much of a difference though.)
>
> HTH.
>
> -- F.

So I should add the following to my stylesheet?:

.tiddler .tagged {
display: none;
}
.selected .tagged {
display: block;
}

FND

unread,
Jan 24, 2008, 1:30:29 PM1/24/08
to TiddlyWiki
> So I should add the following to my stylesheet?: [snip]

Yup, that should do it.

I initially used the visibility property because that would make it
possible (though not easy, because IE6 doesn't support the ":hover"
pseudo-class) to only show the tags box when the mouse pointer is over
that particular box. (As Eric has explained, "display: none;" removes
the element from the document flow - so the mouse pointer can never be
over that box.)
Anyway, I don't think you have to worry about that.


-- F.

LoB

unread,
Jan 24, 2008, 2:09:20 PM1/24/08
to TiddlyWiki
Worked like a charm! Thanks!
Reply all
Reply to author
Forward
0 new messages