My grid doesn't align items after setting EnableOptimizations value as true. If i set it as false, it works correctly.

BundleConfig.cs

        bundles.UseCdn = true;
        BundleTable.EnableOptimizations = true;

        bundles.Add(new StyleBundle("~/bundles/styles")
                      .Include("~/Content/Site/css/bootstrap.min.css", new CssRewriteUrlTransform())
                      .Include("~/Content/Site/css/owl.carousel.css", new CssRewriteUrlTransform())
                      .Include("~/Content/Site/css/magnific-popup.css", new CssRewriteUrlTransform())
                      .Include("~/Content/Site/css/style.css", new CssRewriteUrlTransform())
                      .Include("~/Content/Site/css/Site.css", new CssRewriteUrlTransform())
                      .Include("~/Content/Site/css/jquery.bxslider.min.css", new CssRewriteUrlTransform()));

Layout:

<link href="https://fonts.googleapis.com/css?family=Khand:400,500,600,700&amp;subset=latin-ext" rel="stylesheet">
<link href="https://fonts.googleapis.com/css?family=Montserrat:300,400,500,600,700,900&amp;subset=latin-ext" rel="stylesheet">
<!-- Styles -->
@Styles.Render("~/bundles/styles")
<!--[if lt IE 9]>
<script src="https://oss.maxcdn.com/html5shiv/3.7.2/html5shiv.min.js"></script>
<script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script>
<![endif]-->
@RenderSection("style", false)

Where do I make a mistake? Could you help me, please?

Related posts

Recent Viewed