Dropdown profile settings with image
See original GitHub issueI’m trying to build a dropdown with the profile picture of an user but i don’t know how with the tools materialize owns.
This is my code:
<ul id="profileopt" class="dropdown-content">
<li><a href="#!">My profile</a></li>
<li><a href="#!">Settings</a></li>
<li><a href="#!">Achievements</a></li>
<li class="divider"></li>
<li><a href="#!">Logout</a></li>
</ul>
<ul class="right">
<li><a class="dropdown-button grey-text text-darken-1" href="#!" data-constrainwidth="false" data-beloworigin="true" data-activates="profileopt">Perfil <img style="height:60px;" class="circle" src="./webimg/yuna.jpg"></a></li>
</ul>
This is the result:
What I want to get:
Does anybody know hoy I could get it?
Issue Analytics
- State:
- Created 7 years ago
- Comments:5 (1 by maintainers)
Top Results From Across the Web
How to Add Image into Dropdown List for each items
Programmers can add images into the dropdown list for each items by two methods which are mentioned below. Method 1: Using CSS The...
Read more >How To Make Drop-down Profile Menu Using HTML CSS ...
Learn How To Make Drop-down Profile Menu Using HTML CSS & JavaScript | Toggle Menu For Website Using HTML CSS JS Step by...
Read more >Bootstrap 4 Navbar with Image Dropdown - CodePen
<a class="nav-link dropdown-toggle" href="#" id="navbarDropdownMenuLink" role="button" ... <a class="dropdown-item" href="#">Edit Profile</a>.
Read more >In bootstrap, How do I make an image a dropdown?
Hi, I have created a dropdown in bootstrap, I want to put an image such that it will be the item to click...
Read more >How to create a dropdown list with images? - Jotform
I need to create image dropdown menus, is this possible, ... Profile Image. LemonadeTrifle ... Go to widget settings by the 'wand' button....
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
I’ll do it. But it would be perfect if you decide yo add “images in dropdown” as you did with “Images in select” for this type of menus and other uses.
Html:
<li><a href="#!" data-activates="user-dropdown" class="profile-dropdown-button"><img src="assets/yuna.jpg" class="responsive-img circle profile-img"/></a></li>
Css:img.profile-img { height: 36px; position: relative; top: 14px }