Discussion Locked
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.
This discussion is closed to new replies.
Trending Web Development posts
Sort by Trending
Discussion Locked
What Makes a Business Website Effective in 2026
2 helpful
10 replies
1 helpful
3 replies
Question
Windows and macOS computers becoming slow or unstable after updates - what should I check first
0 helpful
1 reply
Question Unanswered
Best Way to Make Long WordPress Location Guides Mobile Friendly
0 helpful
0 replies
Discussion
Optimizing WordPress widgets and DOM size
0 helpful
3 replies