Contents tagged with css

  • Pro-Tip: MVC Bundling Gotchas - Minimized Files and Stylesheet Order

    A few quick tips for anyone who's attempting to add scripts or stylesheets via bundling in ASP.NET MVC and wondering why things aren't working. Minified Items Say you have the following in your App_Start\BundleConfig.cs: bundles.Add(new ScriptBundle("~/mybundle/sample").Include( "~/Content/Scripts/modernizr.custom.min.js", "~/Content/Scripts/site.src.js" )); … more

  • Custom Web Fonts: IE8 and Different Font Weights

    If you'll remember a few posts back, I described how to import custom fonts for different weights. It turns out that this works for most browsers except IE8 (and probably 7, and 6, and so on). The original css to do the import was: @font-face{ font-family: 'MyFont'; src: url('fonts/MyFontFile.eot'); src: url('fonts/MyFontFile.eot?#iefix') format('embedded-opentype'), url(' … more

  • 1