I'm starting to work with CSS and am noticing quite a difference in the presentation of I.E and Netscape. Thus far the appearance in I.E. has been very funtional, however in Netscape everything i s off. How does one go about obtaining some uniformity between the two browsers when it comes to CSS?
Sad to say, I had to leave a fair amount of stuff in the HTML to get things to work properly across IE and Netscape. So you have to replicate some of the things in your CSS in your HTML. At least I had to... John
The only reason for time is so that everything doesn't happen all at once.
- Buckaroo Banzai
Joined: Oct 06, 2000
So is it generally more productive to create two seperate sites and have a script to detect and direct the browser? I take it from your response that it is possible to do this within the same HTML page. If so, what takes precedence within the document when it comes to the form and presentation?
Joined: Apr 05, 2000
I have seen most people put checks for the browser type in a single html page vs having separate pages or sites. What causes some of the problems across IE & Netscape is that they support different options and that the things that they support in common display differently in some cases. So there isn't a problem with precedence, as far as I know, but with the fact that things display slightly differently and that you have different options available. John
IE 5.5 tends to be on the ball with conforming to the W3C standards on CSS2 and DOM. Netscape 4.7 tends to not fully support CSS2 and DOM. What I tend to do is create various sites based on the browser that is being used by the client. Actually, I do not have completely different sites, I use different CSS files based on the browsers. I like to always check for the browser and based on the browser I will do things different. Netscape 6 tends to comply with many features of CSS2 and DOM; however, there are many bugs in the browser.