Any one tell me how to make HTML code compatable on IE and Netscape. Whe i use layers in HTML Netcsape shows result ok but IE doesn't. Why is like this. Same is case with style sheets. Style sheet result is ok with IE but does'nt work with Netscape.
You should not use layers because IE doesn't recognise them. Use DIV instead. <br><br>What was it about style sheets that doesn't work in Netscape? The only thing I'm aware of that won't work is "A:hover". A quick sample might help...<br><br>Be prepared for a fight getting code to work consistently across browsers, even between IE4 and IE5...<br><br>
I don't think that netscape recognizes styles when they are in the <style> tag. The only way that I know to let netscape and IE position something is to use this tag:<br><br><div id=... style="*"><br><br>*-put style information in here.<br><br>hope that helps <p>theEclipse<br><a href=mailto:eclipse_web@hotmail.com>eclipse_web@hotmail.com</a><br><a href=robacarp.webjump.com>robacarp.webjump.com</a><br>**-Trying to build a documentation of a Javascript DOM, crossbrowser, of course. E-mail me if you know of any little known events and/or methods, etc.
I can say with absolute confidence that both IE and Netscape accept styles in proper STYLE tags, as well as embedded in the tags they control. In fact, according to Dan Steinman's DynamicDuo page (<A HREF="
Both <b>ie and nets</b> accept styles both the have to be called in different areas in <b>ie</b> the font tag accepts it but in <b>nets</b> it does not you have to mput it in the <td> tag <br><br><A HREF="mailto:webmaster@tripmedia.com">webmaster@tripmedia.com</A>
Yep, both IE and Netscape will recognize <STYLE> ... but Netscape 4 is hands down, no debate AWFUL when it comes to dynamic HTML and CSS support. Even Netscape agrees- their LAYER tag is so bad, they don't support it in Netscape 6. It's anti-standards, it's not supported... and gah, it's just a bad tag. So yeah, use DIV tags. However... that still won't always get you to where you need to be in Netscape 4. First of all, the DOM in Netscape 4 is significantly different from IE, while Netscape 6 gets a lot closer (if you all didn't already know, Netscape 6 is about the closest that browsers come to implementing W3C standards). So you have to write browser-conditional code for NN4 with a different DOM if you're accessing this with dHTML. If you're not worrying about dHTML, then that's not a problem. But fear not, Netscape 4 will still have more problems to throw at you (I love this browser!). 1), CSS just doesn't work inside of tables, well at least not correctly. 2), refreshing a window in Netscape often causes the style to be forgotten. You need to create workarounds for that as well.<br><br>Bet you didn't know you had all these problems, eh? Well, someday, everybody will be upgrading to Netscape 6 and none of these problems will exist, but until then... may the grace of God go with you. <p>Liam Morley<br><a href=mailto:lmorley@wpi.edu>lmorley@wpi.edu</a><br><a href=
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.