Discussion Locked

browser problems

0 helpful
1 reply
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.
I have developed a site using IE but when I test it on netscape 7 it explodes/goes horribly wrong! I have been informed it is because I am using a CSS sheet with borders. Netscape takes the border pixels from outside a container and IE from inside. anyone know how to fix it so the site works in Netscape 7/mozilla?

1 reply

by jay eckles

One possibility is to use Javascript to dynamically assign a style to an element based on what browser the client is using.

document.object.style = ... ;

Alternatively, your style sheet could be external and could actually be a servlet or CGI. The program inspects the HTTP headers to try to determine what browser the client is using. Once that's known, the program returns (as text/css) a style sheet appropriate to the browser.

Good luck.

Jay
www.jayeckles.com

This discussion is closed to new replies.