Log in

View Full Version : firefox and IE complications with iframes



NeilWilliams
11-30-2006, 02:54 PM
Hi

Wonder if someone can help?
Im creating an iframe in a certain location on a page. I have an issue, i set scrollbar to auto and the horizontal scrollbar is removed , for firefox, but it appears in IE6 (but is ok in IE7).
If i make the scrollbar = yes then the scrollbar disappears in IE6 and 7 which is great! but then reappaers infirefox.

Any ideas?

Do i need some code to identify what browser and version type a person is using? Can i then get the code to hence use a different style sheet for firefox and a different style sheet for Explorer?

If this is what i need to do, can someone point me somewhere where i can find this code?

Kindest regards
Neil

ccrstudioweb
11-30-2006, 07:22 PM
Why instead doing diferents lay-outs to IE n Firefox (and others???), Why don't you program it to switch to all browsers????

It's simple: Go to http://validator.w3.org/ and validate your page's HTML code first. After correcting them, (only after) you validate the CSS code.

Do the same to the page Iframe recalls.

NeilWilliams
12-04-2006, 11:19 AM
Is there a piece of code that allows me to identify whcih browser and version is being used?

If so can i not then tell it to pick up a duplicate style sheet, with the change IE: scrollbar=auto instead of scrollbar=yes. This way my layout will work in both FF and IE 6 and 7

Thanks
Neil

NeilWilliams
12-04-2006, 11:23 AM
JUst to clarify, i only have one layout!