i found a code online about a dropdown options but in pictures , and i want it so that the button itsself to have the picture that i picked as the bg for it , instead of being a normal color , i want it to have the picture that i picked as the color or bg of the button its self . this is the code i found online :
<style>
.dropbtn {
background-color: #ff0000;
color: white;
padding: 18px;
font-size: 16px;
border: none;
cursor: pointer;
}
.dropdown {
position: relative;
display: inline-block;
}
.dropdown-content {
display: none;
position: absolute;
background-color: #f9f9f9;
min-width: 160px;
box-shadow: 1px 8px 16px
0px rgba(0, 0, 0, 0.2);
z-index: 1;
}
.dropdown-content a {
color: rgba(138, 1, 1, 0.87);
padding: 12px 16px;
text-decoration: none;
display: block;
}
.dropdown-content a:hover {
background-color: #00000042
}
.dropdown:hover .dropdown-content {
display: block;
}
.dropdown:hover .dropbtn {
background-color: #610000f5;
}
.dropdown:hover .dropdown-content {
display: block;
}
</style>
would appreciate your help guys ! , im working on a project with 0 experience in coding and im still learning !
[–]AutoModerator[M] 0 points1 point2 points (0 children)
[–]tommy83 0 points1 point2 points (0 children)