Zoom image in titlebar as a "popup"

Hello forum,

adding an icon field in the tiddler will display it in titlebar:

grafik

Hovering the image in the titlebar with

.tc-titlebar img:hover {
    height: 2em;
    width: 2em;
    zoom: 150%;
}

will also change the height of the titlebar:

grafik

How can it be archieved, that only the image will be zoomed as a “popup”?

Thanks for helping
Stefan

You could try position:absolute but I have not tested that. You might also try float:left, (note: only for ltr languages) but again, untested.

Your problem is that .tc-titlebar is hosting “flow content” which means it will respond to accommodate changes made to any of its child elements in terms of the space they take up.

Good luck.

This doesn’t change the height of the titlebar anymore but moves the text to left:

Edit: I’m using now:

.tc-titlebar img:hover {
    transform: scale(3);
    position: absolute;
    transition: all 0.3s ease-out;
}

Add one or more   or   to the text.

…didn’t help.

But it is ok for me…

Thanks @CodaCoder

What didn’t help?  

…didn’t help.

But it is ok for me…

Thanks @CodaCoder

Are you saying that    Test Zoom image had absolutely no effect? I don’t believe that.

I’m aware that &emsp / &nbsp and others are used in HTML.
I found no solution to use it in my CSS code.