Nginx not serving CSS files

In Chrome DEV tools check the Content Type for the css file. If it is not text/css you may have a incomplete Nginx configuration. Check the default Nginx conf file usually in /etc/nginx has the Mimetypes listed as below in the http section: http{ include /etc/nginx/mime.types; sendfile on;} Nginx Docs https://www.nginx.com/resources/wiki/start/topics/examples/full/

Read More

IE7 z-index issues

If you have z-index issues, particularly with drop down menus in IE7 this conditional script may help. <!–[if IE 7]> <script type=”text/javascript”> $(document).ready(function(){ $(function() { var zIndexNumber = 1000; $(‘div’).each(function() { $(this).css(‘zIndex’, zIndexNumber); zIndexNumber -= 10; }); }); }) </script> <![endif]–>

Read More

Conditional CSS for Internet Explorer

To add stylesheets for specfic Internet Explorer versions you can add the blocks of code below to the head section of your HTML code. Make sure the code is placed beneath your main css declarations. All IE Versions <!–[if IE]> <link rel=”stylesheet” type=”text/css” href=”ie-all.css” /> <![endif]–> IE6 <!–[if IE 6]> <link rel=”stylesheet” type=”text/css” href=”ie6.css” /> […]

Read More