To LUGNET HomepageTo LUGNET News HomepageTo LUGNET Guide Homepage
 Help on Searching
 
Post new message to lugnet.publishOpen lugnet.publish in your NNTP NewsreaderTo LUGNET News Traffic PageSign In (Members)
 Publishing / 1686
1685  |  1687
Subject: 
Stylesheets in MSIE and NS
Newsgroups: 
lugnet.publish
Date: 
Tue, 7 Mar 2000 10:11:06 GMT
Viewed: 
629 times
  
Hi,

Not really a question but some info instead, I thought it would be nice to
share here :-)

I experienced some problems with stylesheets, in MSIE the page looked great,
in NS it was rendered completely differently and was unreadable... It appeared
that NS handled background images in tables differently.
I solved it using script like this:

<script>
if (document.layers)
document.write('<link rel=stylesheet href="lego_ns.css" type="text/css">');
if (document.all)
document.write('<link rel=stylesheet href="lego_ie.css" type="text/css">');
</script>

The script checks, based on the js-object model, what browser displays the
page and inserts the request for the right stylesheet (one with the IE stuff
for tables and one for NS styles).

If you visit my page (see signature) with both browsers the page should look
ok, just NS doesn't have the background images in the tables.

--
Frank Buiting

Visit the LEGO Lexicon http://members.chello.nl/~f.buiting/lego/



Message has 1 Reply:
  Re: Stylesheets in MSIE and NS
 
(...) unreadable... It (...) Who hasn't experienced problems with stylesheets (of those that have experimented with them, of course)? It seems that nothing in MSIE or NS is implemented exactly according to the W3C standards, although I must say that (...) (25 years ago, 8-Mar-00, to lugnet.publish)

3 Messages in This Thread:

Entire Thread on One Page:
Nested:  All | Brief | Compact | Dots
Linear:  All | Brief | Compact
    

Custom Search

©2005 LUGNET. All rights reserved. - hosted by steinbruch.info GbR