Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Compatability b/w Netscape and IE 1

Status
Not open for further replies.

nomy

Programmer
Jul 20, 1999
23
PK
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 &quot;A:hover&quot;. 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 &lt;style&gt; tag. The only way that I know to let netscape and IE position something is to use this tag:<br><br>&lt;div id=... style=&quot;*&quot;&gt;<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=" TARGET="_new"> you SHOULD use the proper STYLE tags because Netscape ignores embedded style tags for DIV layers nested within others.
 
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 &lt;td&gt; tag <br><br><A HREF="mailto:webmaster@tripmedia.com">webmaster@tripmedia.com</A>
 
Yep, both IE and Netscape will recognize &lt;STYLE&gt; ... 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=] :: imotic :: website :: [</a><br>"light the deep, and bring silence to the world.<br>
light the world, and bring depth to the silence."
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top