Sent by Pascal, Fabrice on 6 May 2002 04:04
I think by accident I found a new way to hide CSS from all browsers except
IE5.5/Win and IE6/Win.
Try this :
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN"
"http://www.w3.org/tr/html4/strict.dtd">
<html>
<head>
<title>testpage</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style type="text/css">
<!--
body {
background-color: black;
color: white;
/*/*//*/ background-color: blue;/* */
}
-->
</style>
</head>
<body>
<p>This should white Text on black background in every browser. Except in
IE5.5/Win and IE6/Win. In both browsers the text is black on a white
background.</p>
</body>
</html>
The result should be white text on black background for all browser except
IE 5.5 and IE 6. Both will show white text on blue background.And Validator
says : Your code is valid !
As I don't have a Mac I need some reactions from Mac users.
Which Mac-Browser is affected by this or which one is not ?
Bye
Fabrice