Combine two :hover effects
phaserbeam
Registered Users Posts: 452 Major grins
Hi...
i have a kind of a menu page with some galleries and pages here.
Currently the settings for the thumbs/info is set to overlay and hide on hover.
What i like to do is to show a small arrow if the user hovers a gallery/folder thumb (my own hover effect) while the gallery/folder title will disappear (the SM-hover effect).
Currently i tried this code which will add the ">" on hover. The problem is that the line-height will change and the thumbs under the gallery with the hover effect will move down some pixels.
Any help appreciated
Markus
P.S. Screenshot added...
i have a kind of a menu page with some galleries and pages here.
Currently the settings for the thumbs/info is set to overlay and hide on hover.
What i like to do is to show a small arrow if the user hovers a gallery/folder thumb (my own hover effect) while the gallery/folder title will disappear (the SM-hover effect).
Currently i tried this code which will add the ">" on hover. The problem is that the line-height will change and the thumbs under the gallery with the hover effect will move down some pixels.
Any help appreciated
Markus
P.S. Screenshot added...
li div:hover:after { font-family:'comfortaa'; content:">"!important; opacity:1!important; position:relative; top: -1em; left: 0.2em; color:white; text-shadow:2px 2px 5px #111, 2px 2px 10px #222; font-size:5em; z-index:9999!important; }
0
Comments
ul li .sm-tile {
height: 192px;
}
As it seems there is a hover action that is increasing that height.
Support Hero and Customeister
http://www.smugmug.com/help
Yes... adding the ">" after the list element will change the line-height since it will be printed in a new line under the thumb. That's why i used to position/top elements to set the position on top of the thumb.
On a first look your code seem to work, the problem is after resizing the browser window the thumbs will not keep the layout.
So thanks for the help but i think changing the line height isn'a good idea...
OK, think i got it:
Thanks anyway for having a look
Markus