I'm having a bit of an issue with my inbox setup. I have a dropdown for it, but the dropdown is appearing off to the right and since it's at the end of my top navbar, it's not very visible. Here is the CSS code for the inbox:
.notification {
background-color: #555;
color: white;
text-decoration: none;
position: relative;
display: inline-block;
border-radius: 2px;
}
.notification:hover {
background: red;
}
.notification .badge {
position: absolute;
top: -7px;
right: -10px;
padding: 5px 10px;
border-radius: 50%;
background-color: red;
color: white;
}
.dropdown {
position: relative;
display: inline-block;
user-select: none;
}
.dropdown-content {
display: none;
position: absolute;
background-color: #f9f9f9;
min-width: 160px;
box-shadow: 0px 8px 16px 0px rgba(0, 0, 0, 0.2);
padding: 12px 16px;
z-index: 1;
user-select: none;
}
.dropdown:hover .dropdown-content {
display: block;
user-select: none;
}
<div style="float:right;" class="dropdown">
<span className="span3"></span><a href="#inbox" class="notification">
<span><img src="https://flounder.epizy.com/images/inbox.png" height="25" width="25"/></span>
<div class="dropdown-content">
</div>
</a>
</div>
I'm not quite sure how to fix this issue, can someone please help me out?