Is there a way to achieve a full width hover background effect on list items?
https://i.sstatic.net/o5Dmt.png
I want the gray background to extend fully towards the left. How can I accomplish this?
What steps should I take:
HTML:
<div class="col-md-5 col-xs-12 additonal-resources-cont">
<h3 class="header-additnl-resources">Additional Resources </h3>
<ul class="additional-resrc-ul nopadding">
<li><a href="" class="additional-resources-href">Login / Register</a></li>
<li><a href="" class="additional-resources-href">Request Samples</a></li>
<li><a href="" class="additional-resources-href">Technical Documentation</a></li>
</ul>
</div>
CSS:
.additional-resources-href:hover {
background: #1daeeb;
opacity: 4.5;
background-color: #BFCDD5 !important;
}
.additional-resources-href {
color: black;
text-decoration: none;
}
.additional-resrc-ul li:before {
content: "• ";
font-weight: bold;
color: #1DAEEB;
}
.additional-resrc-ul li:hover {
background: #1daeeb;
opacity: 4.5;
background-color: #BFCDD5;
}
.additional-resrc-ul {
margin: 0px;
padding: 0px;
margin-left: 10%;
font-weight: 300;
font-size: 10px;
line-height: 3.5em;
}