Query:
Is there a way to maintain the functionality of the 'after' part of the code when switching from an HTML button to an ASP button? I am experiencing issues with it dropping.
Issue:
After changing <button
to <asp:button
, the after effect of the CSS stops working. The specific part of the code that is failing is #course .bottom .btn-next:after
.
Code:
#course .bottom .next {
padding-right: 40px;
}
#course .bottom .btn-next {
border-top-left-radius: 10px;
border-bottom-left-radius: 10px;
}
#course .bottom .btn-next:after {
left: 100%;
top: 50%;
border: solid transparent;
content: " ";
height: 0;
width: 0;
position: absolute;
border-color: rgba(255, 255, 255, 0);
border-left-color: #ffffff;
border-width: 20px;
margin-top: -20px;
}
Research example:
Is it possible to have a :after pseudo element on a button? (pertains to HTML and not .NET buttons)