File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes HTML, CSS and JavaScript and the fly likes CSS:  Presentation in I.E. & Netscape Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "CSS:  Presentation in I.E. & Netscape" Watch "CSS:  Presentation in I.E. & Netscape" New topic
Author

CSS: Presentation in I.E. & Netscape

michael bradly
Ranch Hand

Joined: Oct 06, 2000
Posts: 112
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?
John Wetherbie
Rancher

Joined: Apr 05, 2000
Posts: 1449
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
michael bradly
Ranch Hand

Joined: Oct 06, 2000
Posts: 112
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?
John Wetherbie
Rancher

Joined: Apr 05, 2000
Posts: 1449
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
Ray Hunter
Greenhorn

Joined: Aug 01, 2000
Posts: 20
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.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: CSS: Presentation in I.E. & Netscape