473,385 Members | 1,890 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,385 software developers and data experts.

Hide CSS from MSIE 4.72 (methods for IE4 don't work)

Standard advice -- even given here recently -- for hiding CSS from
MSIE 4.x is to enclose the styles in @media { ... }. The same advice
is given at [1].

Unfortunately, it doesn't work with MSIE 4.72 (Win 98). That version
quite happily reads the stylesheets and then mangles the
presentation. It's really horrible -- even on a simple page like
http://www.acad.sunytccc.edu/instruct/sbrown/
(The college name and address should be on two lines top aligned
just right of the logo; the table should be horizontally centered
with internal text left aligned.)

Apparently 4.72 is different somehow from other 4.x. Though it's not
noted as an exception on [1], it _is_ noted as an exception on the
companion page [2].

I've googled without success -- lots of Q&A on hiding from MSIE 4.x,
but none that I found addressed specific problems with 4.72.

I've given up on getting pages to look decent in MSIE 4;(*) now my
goal is just to disable stylesheets for MSIE 4 -- all versions
including 4.72. Anyone know how to do it?

(*) I spent most of yesterday trying to follow the advice at [3] for
centering tables, but could not get it to work in MSIE 4.72 even
though it is stated to work in MSIE 4.x.

[1] http://w3development.de/css/hide_css...rowsers/media/
[2] http://w3development.de/css/hide_css...owsers/import/
[3] http://theodorakis.net/tablecentertest.html Example II g.

--
Stan Brown, Oak Road Systems, Cortland County, New York, USA
http://OakRoadSystems.com/
HTML 4.01 spec: http://www.w3.org/TR/html401/
validator: http://validator.w3.org/
CSS 2 spec: http://www.w3.org/TR/REC-CSS2/
validator: http://jigsaw.w3.org/css-validator/
Jul 20 '05 #1
3 2388
Stan Brown wrote:

I've given up on getting pages to look decent in MSIE 4;(*) now my
goal is just to disable stylesheets for MSIE 4 -- all versions
including 4.72. Anyone know how to do it?


I've had success with the following combination:

1. Link to a browser-safe stylesheet, pretty much limited to page colors
and font suggestions.
2. In the linked stylesheet, import the advanced rules with syntax:
@import "/path-to/stylesheet.css";
3. In the imported stylesheet, include media types:
@media screen, projection { rules }

This combo hides a lot from a number of CSS-challenged browsers. I did
find, however, that the @media rule also hides from Mac IE 5 and
Konqueror 2.2 (but not Konq3), which is unfortunate but is the lesser of
various evils, IMO. But... I recently stumbled upon a method to
"unhide" @media rules from MacIE by including a box-model hack:

@media screen, projection {
..dummy {
voice-family: "\"}\"";
voice-family: inherit;
}
[Mac IE now sees everything that follows]

HTH

--
To email a reply, remove (dash)ns(dash). Mail sent to the ns
address is automatically deleted and will not be read.

Jul 20 '05 #2
In article <sw*******************@newsb.telia.net> in
comp.infosystems.www.authoring.stylesheets, Tina Holmboe
<ti**@greytower.net> wrote:
At first glance it would seem to me that your best bet is to send an
IE 4-specific stylesheet. This would probably involve some server-side
processing[*].
Not an option, I'm afraid. I have zero input to what the server
does.
No, a client-side method using scripting isn't useful. Users of
IE 4 are also allowed to turn off Javascript.


I would never embrace a Javascript solution anyway, because of the
numerous security holes.

--
Stan Brown, Oak Road Systems, Cortland County, New York, USA
http://OakRoadSystems.com/
HTML 4.01 spec: http://www.w3.org/TR/html401/
validator: http://validator.w3.org/
CSS 2 spec: http://www.w3.org/TR/REC-CSS2/
validator: http://jigsaw.w3.org/css-validator/
Jul 20 '05 #3
Stan Brown <th************@fastmail.fm> exclaimed in <MP************************@news.odyssey.net>:
At first glance it would seem to me that your best bet is to send an
IE 4-specific stylesheet. This would probably involve some server-side
processing[*].


Not an option, I'm afraid. I have zero input to what the server
does.


Unless you can serve up the stylesheet from a different server, ie.
using the method outlined in the article I quoted but placing the
scripts on server you have control over, there is very little you
can do.

Well, nothing I know of anyway ...
No, a client-side method using scripting isn't useful. Users of
IE 4 are also allowed to turn off Javascript.


I would never embrace a Javascript solution anyway, because of the
numerous security holes.


*So* in agreement.

--
- Tina Holmboe Greytower Technologies
ti**@greytower.net http://www.greytower.net/
[+46] 0708 557 905
Jul 20 '05 #4

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

Similar topics

8
by: adrien | last post by:
Thanks for all the answers about how to hide scrollbars in netscape. The conclusion is that it's not possible. My initial purpose is to compare some Netscape and IE possibilities and it's the...
9
by: Don Grover | last post by:
I have a HTML table created using ASP as a web page. ie. HEADING1 HEADING2 HEADING3 etc... data 1 data2 data3 etc and so on How can I toggle hide /...
4
by: C-Sharper or C-Hasher, one of the two | last post by:
Hi, I have a C# class libary (Class1) which is inherited by another class in a Windows Forms app. I want this other class to implement some, but not all of the features of the base class. How...
6
by: Alex Sedow | last post by:
Example 1 interface I { string ToString(); } public class C : I { public void f() {
14
by: Laurent Vigne | last post by:
Hello, I would like to know how to make the methods of an interface inaccessible from outside Example: ---------------------------------------------- internal Interface ImyInterface { void...
3
by: Merlin | last post by:
Hi there, I am trying to create a form with an dynamic field that can be shown or hidden. As I saw for example on google it is possible with JS to show a layer and move the content underneath...
5
by: Amit | last post by:
Can anyone write the code to hide tabpage of tab control in windows form 2.0 Thanks, Amit
10
by: roberto | last post by:
I'm to deploy a .NET DLL which internally communicates with the WS. I don't want others to see internal complexity of the web service classes generated by "Add a Web reference" VS option. As a...
0
by: roberto | last post by:
Sorry, but posting a reply does no work (6 hours after the "successful" post the message is not shown)) so I decided to post it. This is a reply to a thread...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
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: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
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
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...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
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
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
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.