Css:
#header {
height: 55px;
text-align: center;
width: 100%;
position: fixed;
top: 0px;
z-index: 6;
/*background-color: rgba(24,24,29,0.4);*/
background: url('../images/head1.png');
}
.pageLink {
margin: auto 18px;
align-self: center;
position: relative;
vertical-align: middle;
font-size: 0.9em;
letter-spacing: 1px;
white-space: nowrap;
}
.pageLink {
text-decoration: none;
color: white;
}
.home1 {
padding-top: 7px;
padding-right: 20px;
}
#authLink {
z-index: 500;
top: 35%;
right: 0;
font-size: 0.8em;
position: absolute;
}
.fa-caret-down {
color: #cf5630;
}
I have this code:
echo '<span id= "authLink" class= "pointer absolute">';
echo'<span class= "pageLink text" style="border-bottom: none"><i class="fa fa-bell"></i>Hi,';
echo $firstname;
echo '! <i class="fa fa-caret-down"></i> I <i class="fa fa-shopping-cart"></i> </span>';
echo '</span>';
Is it possible for when I click on "fa-caret-down" to display a dropdown box and inside is the "Logout" Link? I tried doing through pure Css but it didn't work, maybe with javascript it will? Can anyone help with this?