Replies

Aug 2, 2016 9 years ago
Deadeye
Kisrah
User Avatar
Brainfreeze

I've got an idea for a pet profile involving the minion, but the text surrounding it is going to look unsightly. I want the minion to be constantly visible, but the text to be hidden unless hovered over. Is there any way to do this?


HONK!

Aug 2, 2016 9 years ago
Frenchi
is hopelessly romantic
User Avatar
Vivisect

yes, you can use this code:

{visibility:hidden} img {visibility:visible!important} :hover {visibility:visible}

Aug 2, 2016 9 years ago
Deadeye
Kisrah
User Avatar
Brainfreeze

That works great, thanks! :D

I plan to make an overlay for the minion, which will be larger than the original minion image. I've done minion overlays before, but I wanted to make sure that'll work okay with this? Will I need to adjust the code to make sure it works with my image?


HONK!

Aug 2, 2016 9 years ago
Frenchi
is hopelessly romantic
User Avatar
Vivisect

i don't think so, just use the minion overlay code as you usually do. if you haven't done bigger minion overlays, though, you have to make sure the height is correctly indicated, like if for example the image is 90x90 px:

img {height:0px; width:90px; padding-bottom:90px; padding-top:0px; background:url(URL) left top no-repeat} and the text will automatically move to accommodate the new image.

Aug 2, 2016 9 years ago
Deadeye
Kisrah
User Avatar
Brainfreeze

Yep, that's exactly what I've got with one of my other pets. Sounds like it should be fine then. Thanks! <3


HONK!

Aug 2, 2016 9 years ago
Frenchi
is hopelessly romantic
User Avatar
Vivisect

you're welcome 😊

Please log in to reply to this topic.