Jump to content

Confused with Modernizr


njdubois

Recommended Posts

When I add modernizr, and I follow the tutorial here:

http://webdesignernotebook.com/css/how-to-use-modernizr/

 

I made some generic background 1 and 2 images, I set up an html file with the modernizr script in the head, before the style.  You can see the page here:

 

http://beaconfasteners.com/test.html

 

And the code is:

 

<html class="no-js">


<head>


<script src="modernizr.custom.54953.js"></script>


<style>
#nice {
    background: url(background-one.png) top left repeat-x,
    url(background-two.png) bottom left repeat-x;
}
</style>


</head>


<body id="nice">
<p>Hello World</p>
</body>


</html>

I pull the site up in internet explorer 11 and using the emulation tools in developer options I go down each version and view the source code.  There is never a change, but the backgrounds do stop displaying.

 

is there an extra step I am missing?  Is the emulation mode not doing what I think it is?  Should I setup a virtual machine with windows xp or find a windows xp system to test with?

 

Thanks a ton!

Nick

 

[EDIT]I was viewing source, and not inspecting element.  I see changes now and am moving on to next steps.  This post can be deleted.[EDIT]

Link to comment
https://forums.phpfreaks.com/topic/293134-confused-with-modernizr/
Share on other sites

  • 1 month later...

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.