473,394 Members | 1,671 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,394 software developers and data experts.

Netscape 4 workaround for non-external CSS?

Hi.

I have an html file which I want to be readable offline, so its CSS
declarations are made inside the <style> tag. Predictably, the page
looks terrible in Netscape 4.

I know about the '@import' hack to make NN4 ignore CSS, but given that i
need this file to be self-contained, is there any other workaround I can
use?

Thanks in advance

Jon
Jul 20 '05 #1
4 1546
In article <87************@dinopsis.dur.ac.uk>, Chris Morris wrote:
Jonathan Vaughan <jo***************@mashed.turnip.org.uk> writes:
I know about the '@import' hack to make NN4 ignore CSS, but given that i
need this file to be self-contained, is there any other workaround I can
use?


http://www.w3development.de/css/hide_css_from_browsers/
Probably the /*/*/ hack from
http://www.w3development.de/css/hide...browsers/more/
is the best for restricting the effects outside of NS4.


Thanks. It looks asthough that'll do exactly what I need.

Jon
Jul 20 '05 #2
Jonathan Vaughan gestand:
I have an html file which I want to be readable offline, so its CSS
declarations are made inside the <style> tag. Predictably, the page
looks terrible in Netscape 4. I know about the '@import' hack to make
NN4 ignore CSS, but given that i need this file to be self-contained,
is there any other workaround I can use?


p { border: 1px solid red}
html p { border: 1px solid blue}

<p>This paragraph has a red border in Netscape Navigator 4.x only.</p>

Thomas
Jul 20 '05 #3
Jonathan Vaughan wrote:

I know about the '@import' hack to make NN4 ignore CSS, but given
that i need this file to be self-contained, is there any other
workaround I can use?


IIRC you can also use media="all" or media="print, screen" (if that's
OK for your page).
Jul 20 '05 #4
In article <bi************@ID-203055.news.uni-berlin.de>, Philipp
Lenssen wrote:

Jonathan Vaughan wrote:
I know about the '@import' hack to make NN4 ignore CSS, but given
that i need this file to be self-contained, is there any other
workaround I can use?


IIRC you can also use media="all" or media="print, screen" (if that's
OK for your page).


Thanks for posting this. I don't know whether this'll fix my NN4 problem
(expect it will, though), but it should defninitely fix another problem
I was having with printing the page. I didn't realise <style> has a media
attribute.

Thanks again

Jon
Jul 20 '05 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
by: Yvan J. Gagnon | last post by:
I am encountering a strange problem in Netscape 7 with a CFM file I am trying to troubleshoot (the page is working fine in NS Communicator and IE). Below is a sample of the problematic line of...
9
by: rez | last post by:
I find it rather frustrating that Netscape 4.x is "no longer supported:" http://help.netscape.com/products/client/communicator/reflib.html Same seems true with IE. How am I ever supposed to...
2
by: Geniium | last post by:
Hello, Im looking to make work my script on both IE and Netscape. It works fine in IE, but netscape cant handle "dynamic" variables. I need some help! Is there a CORRECT way to pass a string...
2
by: Fabian | last post by:
Netscape doesn't appear to suport teh stylesheet clip attribute. Is there a workaround? #f_cw1 { position: absolute; top: 40px; left: -280px; z-index: 14; clip: rect (0 auto auto 280); } The...
2
by: CES | last post by:
All, I'm at a loss, the code below works in IE but not in Netscape and I'm unskilled enough not to know why. Essentially this code looks thru all of the form fields and if the input box has a...
2
by: Kevin Ly | last post by:
Consider the test case below. The onmouseout event does NOT fire when my mouse/cusor is moved off the left side of the browser. It does if it is moved off the top, bottom, and the right side that...
18
by: Dennis | last post by:
It seems that garbage collection is somewhat flawed in Netscape as the following little script can bring a machine to its knees in about an hour when run on Netstcape 7.1. I've tried freeing the...
8
by: Arun Seetharam | last post by:
Dear Folks, The application I am working on uses Frames (TopFrame, SideFrame(Left) and the MainFrame). On the occurance of a certain event, I am closing the window from one of the frames. This...
26
by: Roger Desparois | last post by:
Hi, I need help : I found the simplest and most precise way to open and close submenu layers. it works perfectly with IE, but for some odd reason NS won't recognize it. Can anyone tell me why...
1
by: Salad | last post by:
I am using Netscape 7.2 as the e-mail client. I can stuff the To, CC, and BCC fields with valid recipients in my application. When I execute the command SendObject I have the option to Edit or...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.