473,795 Members | 3,048 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 2417
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.t elia.net> in
comp.infosystem s.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************ ************@ne ws.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
4524
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 second time that i have to conclude that Netscape can't do something while IE does: 1) IE is able to hide scrollbars (even only vertical or only horizontal) while Netscape is not. 2) IE is able to start a sound (wav) when the mouse e.g. goes over an...
9
25811
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 / show the columns individually, anyone ever needed to do this and have any suggestions.
4
6745
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 can I completely hide (within the IDE) the members of the base class library i.e. only expose those members that I want exposed? I've tried some methods gleaned by googling for "hiding base class members" which suggested using things like "new" and...
6
3015
by: Alex Sedow | last post by:
Example 1 interface I { string ToString(); } public class C : I { public void f() {
14
4831
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 MyPrivateMethod(); // I cant define any accessibility here, well ok ! }
3
6406
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 that layer further down uppon showing this layer. When a person closes that layer the content underneath the layer moves up again and closes the empty space. How is this possible? I am playing around with some code I am posting with this thread....
5
13302
by: Amit | last post by:
Can anyone write the code to hide tabpage of tab control in windows form 2.0 Thanks, Amit
10
7129
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 WebSerive contains a lot of methods and different types creating a web proxy class manually is too time consuming. I tried to edit a class manually, changing the highest-level access modifiers from public to internal - this way I could use the...
0
1198
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 http://groups.google.pl/group/microsoft.public.dotnet.framework.webservices/browse_thread/thread/1de13b5ef20c837a/78006eaa8e840fd1#78006eaa8e840fd1 Web Service API is a minimal one, there is nothing to refactor. What I want is to hide complexities of the proxy from third-party...
0
9672
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9519
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10439
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10215
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
7541
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6783
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5563
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
3727
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2920
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.