July 16th, 2013, 10:04 AM
Join Date: Jul 2013
Time spent in forums: 12 m 32 sec
Reputation Power: 0
Modernizr In IE8 - Pads Content?
I am using IE 8 on my dev machine and I just started including Modernizr in my MVC 4 project to allow the date picker to have quick month and year change functionality in IE 9 and opera.
When I run the application all my content is pushed to the right as if I am padding my content. When I stop including modernizr the content goes back to the left.
Why would including modernizr cause the content to appear to be padded? I have only tested in IE 8 locally.
Here is how I included modernizr in my _Layout.cshtml:
<meta charset="utf-8" />
<title>@ViewBag.Title - TestAPP</title>
<meta name="viewport" content="width=device-width" />
@RenderSection("scripts", required: false)
Modernizr is working correctly for my DatePickerReady.js file, but it pushes my content to the right in my Index view.