2 Posts for October, 2014
Accessing a Varying Vagrant Vagrants VM From Another VM
For the uninitiated, Varying Vagrant Vagrants is a project that builds a virtual machine running Wordpress by using Vagrant. It configures a virtual machine with Nginx and serves up a few different versions of Wordpress. Unrelatedly, Microsoft provides virtual machines for testing various versions of Internet Explorer. I needed to test something in IE8, so vagrant up, fire up the IE virtual machine, apologize to the memory of your laptop and away we go! It turns out the way Nginx is configured doesn’t make it easy to access the server from another machine on the same host. Read on for the rest.
IE8 Specific CSS Hack
Here is a quick hack that could be useful depending upon the context. :root is a pseudo selector that selects the root element on the page. That’s almost always the <html> element. That’s not what’s interesting though. The :root pseudo selector is only supported in IE9 and up, which means you can use it to target browsers less than IE8. Head past the break for the details and a demo.