- 18
How can I make the background of the megamenu (dropdown) span the browser width?
From CategoryMenuTemplate.WithPictures.cshtml
@(Html.DataTable<SevenSpikes.Nop.Plugins.MegaMenu.Models.MegaMenuCategoryModel>(Model.CategoriesModels, 4, "row", "box",
@<text>
...
<div class="row-wrapper">
<div class="row">
<div class="box">..</div>
<div class="box">..</div>
...
</div>
<div class="row">
<div class="box">..</div>
<div class="box">..</div>
...
</div>
</div>
<div class="row-wrapper">
<div class="box">...</div>
<div class="box">...</div>
...
</div>
<div class="row-wrapper">
@foreach (SevenSpikes.Nop.Plugins.MegaMenu.Models.MegaMenuCategoryModel item in Model.CategoriesModels)
{
<div class="box">
<div class="title">
<strong>
<a href="@Url.RouteUrl("Category", new { SeName = item.CategoryModel.SeName })" title="@item.CategoryModel.PictureModel.Title">
@item.CategoryModel.Name</a>
</strong>
</div>
<!--title-->
<div class="picture">
<a href="@Url.RouteUrl("Category", new { SeName = item.CategoryModel.SeName })" title="@item.CategoryModel.PictureModel.Title">
<img alt="@item.CategoryModel.PictureModel.AlternateText" src="@item.CategoryModel.PictureModel.ImageUrl"
title="@item.CategoryModel.PictureModel.Title" /></a>
</div>
<!--picture-->
<ul class="subcategories">
@foreach (var subCategory in item.SubCategories.Take(megaMenuSettings.NumberOfCategories))
{
<li>
<a href="@Url.RouteUrl("Category", new { SeName = subCategory.CategoryModel.SeName })" title="@subCategory.CategoryModel.Name">
@subCategory.CategoryModel.Name</a>
</li>
}
@if (item.SubCategories.Count == megaMenuSettings.NumberOfCategories)
{
<li>
<a class="view-all" href="@Url.RouteUrl("Category", new { SeName = item.CategoryModel.SeName })">@T("SevenSpikes.MegaMenu.ViewAllCategories")</a>
</li>
}
</ul>
</div>
}
</div>
<div class="dropdown categories fullWidth [email protected]">
@(Html.DataTable<SevenSpikes.Nop.Plugins.MegaMenu.Models.MegaMenuCategoryModel>(category.SubCategories, 4, "row", "box",
@<text>