10.2.1 Creating a Responsive Header; Listing 10-1 Adding Responsive Content to the _Layout.cshtml file

chap10
Jason Zhu 2021-09-22 22:14:15 +10:00
parent dfd6b230f6
commit fa611c9e3b
1 changed files with 11 additions and 1 deletions

View File

@ -7,10 +7,20 @@
<link href="~/Content/bootstrap-theme.css" rel="stylesheet"/> <link href="~/Content/bootstrap-theme.css" rel="stylesheet"/>
<link href="~/Content/ErrorStyles.css" rel="stylesheet"/> <link href="~/Content/ErrorStyles.css" rel="stylesheet"/>
<title>@ViewBag.Title</title> <title>@ViewBag.Title</title>
<style>
.navbar-right {
float: right !important;
margin-right: 15px; margin-left: 15px;
}
</style>
</head> </head>
<body> <body>
<div class="navbar navbar-inverse" role="navigation"> <div class="navbar navbar-inverse" role="navigation">
<a class="navbar-brand" href="#">SPORTS STORE</a> <a class="navbar-brand" href="#">
<span class="hidden-xs">SPORTS STORE</span>
<span class="visible-xs">SPORTS</span>
<span class="visible-xs">STORE</span>
</a>
@Html.Action("Summary", "Cart") @Html.Action("Summary", "Cart")
</div> </div>
<div class="row panel"> <div class="row panel">