Currently, I am engrossed in reading the book titled "ASP .NET MVC 5." However, I have hit a roadblock. The author utilizes Bootstrap 3 in the book, but the newer version of Bootstrap contains some modifications that are causing me difficulties in solving my issue.
The book provides the following code snippet:
<div class="navbar-right visible-xs">
<a <a href="/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="ea82988f8cd7aabf9886c4ab899e838584">[email protected]</a>("Index", "Cart", new { returnUrl = Request.Url.PathAndQuery })
class="btn btn-default navbar-btn">
<span class="glyphicon glyphicon-shopping-cart"></span></a></div>
On the other hand, I attempted to implement the following code:
<div class="navbar-brand d-block d-sm-none">
<a href="@Url.Action("Index", "Cart", new {returnUrl = Request.Url.PathAndQuery})" class="btn btn-primary">
<i class="fa fa-plus"></i>
</a>
My goal is for the output to display an icon link of "+", but unfortunately, all I see is an empty button without the desired icon.