Welcome! Log In Create A New Profile

Advanced

NGINX CSS issues in IE 7/8

Posted by blueoceancomm 
NGINX CSS issues in IE 7/8
October 09, 2012 12:55PM
I am relatively new to NGINX after coming from years in Apache.

I have run into a problem however where in IE 7 / IE 8, NGINX does not render two template sites the same.

Here is the demo:
http://snax1-ord.blueoceancomm.com/site_demo/
http://dev1-mia.blueoceancomm.com/site_demo/

Note the text and menu bars... (there are numerous issues throughout the site)

Something with the CSS is the problem... It appears like not all of it is rendering correctly through NGINX, but the same code works fine in Apache. Any ideas??



Edited 1 time(s). Last edit at 10/09/2012 12:55PM by blueoceancomm.
Re: NGINX CSS issues in IE 7/8
October 09, 2012 01:25PM
Sorry I mean't to clarify:
- dev1-mia is running Apache and is correctly displaying the site.
- snax1-ord is running NGINX and is NOT displaying it correctly.

It is the same source on both.

version is nginx.x86_64 0:1.2.4-1.el6.ngx
Re: NGINX CSS issues in IE 7/8
October 10, 2012 09:04AM
blueoceancomm Wrote:
-------------------------------------------------------
> Sorry I mean't to clarify:
> - dev1-mia is running Apache and is correctly displaying the site.
> - snax1-ord is running NGINX and is NOT displaying it correctly.
>
> It is the same source on both.
>
> version is nginx.x86_64 0:1.2.4-1.el6.ngx

It's possible (I don't know for sure) that Apache is trying to make some sort of corrections for IE. AFAIK, Nginx doesn't make any corrections but serves pages exactly as-is.

If IE is really that important to you, there are many workarounds (CSS-related) on the Internet. One of the most common that I found was to create an ie-specific CSS file, then load it by adding the following to your HTML, in the <head> section:

<!--[if IE 6]>
<link rel="stylesheet" type="text/css" href="iespecific.css">
<![endif]-->

Replace the IE version and css file name as needed. This way, you can tweak it in a specific version of IE until it looks right.

Better yet, if you know your CSS is standards-compliant, email Microsoft and tell them to fix their browser.

--
Piki
Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 232
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready