D
D
Dmitry Filandor2015-12-03 10:45:44
css
Dmitry Filandor, 2015-12-03 10:45:44

ASP MVC 5 How to make Bundle friends with CSS media=all?

Hello!
Guys, how to make Bundle friends with CSS media=all?
I have a template where:

<link rel='stylesheet' id='realexpert_bootstrap_main_css-css'  href='library/bootstrap/css/bootstrap.min.css' type='text/css' media='all' />
  <link rel='stylesheet' id='realexpert_bootstrap_responsive_css-css'  href='library/bootstrap/css/bootstrap-responsive.min.css' type='text/css' media='all' />
  <link rel='stylesheet' id='realexpert_font_awesome_css-css'  href='library/font-awesome/css/font-awesome.min.css' type='text/css' media='all' />

I transfer the template to the asp mvc project, set up the Bundle:
bundles.Add(new StyleBundle("~/Content/css").Include(
                      "~/Content/style.css",
                      "~/Content/bootstrap.min.css",
                      "~/Content/bootstrap-responsive.min.css.css",
                      "~/Content/font-awesome.min.css",
                      "~/Content/style.css")
                      
                      );

everything is ok, but in some places the layout is not at all like that (too narrow). Been looking for the difference between asp mvc site with embedded template and pure original template for a long time - the only difference is these: media='all'

Answer the question

In order to leave comments, you need to log in

1 answer(s)
R
Roman, 2015-12-03
@LifeAct

"~/Content/bootstrap-responsive.min.css.css", apparently there is an error

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question