I am currently utilizing bootstrap 4 in my code and have implemented the following ::after styling for certain elements:
.navbar-light .navbar-nav > li >a::after{
content: " ";
height: 50px;
width: 10%;
background-image: linear-gradient(to right,#1E8BC3,rgb(162, 214, 240)) !important;
position: absolute;
top: 0;
left: 0;
z-index:8;
}
Although I intended for the background color to appear on all li >a elements, it is only showing up on the left side of the navbar as evidenced by the screenshot in the link below. Can anyone provide a solution to this issue? Thank you in advance.