question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Dropdown profile settings with image

See original GitHub issue

I’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: Image of Result

What I want to get: Image of what i want

Does anybody know hoy I could get it?

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:5 (1 by maintainers)

github_iconTop GitHub Comments

1reaction
Isprago94commented, Apr 9, 2016

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.

0reactions
thanhtrixxcommented, Nov 17, 2016

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 } image

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found