Click to See Complete Forum and Search --> : Dealing with IE's rendering problems


azound
12-15-2007, 11:25 PM
Hi,

I'm trying to build a website for a friend, but despite my arguments, she wants the site to be a table-based design with pixel perfect position of its elements.

While the site works great in most browsers, Internet Explorer is randomly offsetting one of my table rows by 2 pixels.

I tried to correct this by putting a javascript browser detect and offsetting the row by 2 pixels to compensate if the browser is internet explorer. Unfortunately, when I go to the site in Internet Explorer, it disallows the script by default, and adds a notification banner to the top of the site saying that the website is trying to run a script which may be dangerous.

Is there any way to change a website based on the users browser without running a script that scares Internet Explorer?

ray326
12-16-2007, 01:21 AM
People did that back in the 20th century by serving up a different set of pages based on the useragent header sometimes sent by browsers and other web clients.

Fang
12-16-2007, 05:52 AM
I'm trying to build a website for a friend, but despite my arguments, she wants the site to be a table-based design with pixel perfect position of its elements.pixel perfect is a dream.
Unfortunately, when I go to the site in Internet Explorer, it disallows the script by default, and adds a notification banner to the top of the site saying that the website is trying to run a script which may be dangerous.

Is there any way to change a website based on the users browser without running a script that scares Internet Explorer?http://www.webdeveloper.com/forum/showpost.php?p=337438&postcount=2

azound
12-17-2007, 01:02 AM
Right, I know that an individual client can change their browser's security settings, but I want to make a website that doesn't make IE think it's dangerous.

Fang
12-17-2007, 02:05 AM
IE is warning you about running scripts locallyIE only warns you, not the users.
Users may have JavaScript disabled; never rely on JavaScript for functionality in your site.
http://adactio.com/atmedia2005/
http://onlinetools.org/articles/unobtrusivejavascript/chapter1.html