Hi there,
I have a site where people can make accounts. I also have a profile picture in my header, however, I want a dropdown menu to appear when people hover their profile picture on pc.
How can I achieve this?
I’ve tried it with Bricksforge but it turns into a mess. Any simple solutions?
Bearing in mind I have terrible methods
You could add a DropDown element to the menu. Make the background (via Styles) a dynamic image (e.g. user profile img). This puts an image behind the link text. Remove link text, set width/height (in styles) to force size. Then put whatever you want in the drop-down (e.g. user name).
Hey Roel,
there are many ways to tackle this. I created a screencast to show you one manual but still very basic way. Hope it helps.
This is the custom CSS I used. Feel free to adjust it to your needs:
root:not(:hover) .avatar__dropdown {
opacity: 0;
visibility: hidden;
}
Best,
André
1 Like
I’ll give this a try and let you know how it goes!
Worked like a charm, see here: