Forum Moderators: not2easy

Message Too Old, No Replies

style sheets & Netscape problem

         

mmdsoft

5:22 pm on Jun 19, 2004 (gmt 0)

10+ Year Member



Hi,

I have following code:

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<head>
<title>Untitled</title>
<STYLE TYPE="text/css">
<!--

.klasa { background:#ffff00;
width:260px;
font-size:90%;
text-align:center;
border:solid 2;
display:inline;
white-space: wrap
};
-->

</STYLE>
</head>

<body>

<code class=klasa><img src="image.gif" width="240" height="60" border="1">
ala ma asa</code>
<code class=webcam><img src="image.gif" width="240" height="60" border="1">
ala ma asa</code>
</body>
</html>

Everythings is fine under IE & Opera but under Netscape it does'nt work (Netscape don't see width and don't wrap the text)

I'd like to have something like that

Image1 Image2
Text Text

Does anybody know how to improve or change this style to get
it properly working under Netscape.

Thx.

D_Blackwell

6:06 pm on Jun 19, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



I need to know more to say more, but {display: inline;} is part of the problem. Removing it might get you started to the answer.

mmdsoft

6:16 pm on Jun 19, 2004 (gmt 0)

10+ Year Member



no, I inserted display:inline when I was trying to solve the problem. The code with disp... and without behaves the same.

createErrorMsg

6:22 pm on Jun 19, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Netscape what? If you're talking about NS4.x, it's not working because NS4.x is a peice of ... shifty software that misrepresents/misunderstands/just-plain-misses almost every useful style (and DOM object and method and event handler) you can think of.

mmdsoft

6:34 pm on Jun 19, 2004 (gmt 0)

10+ Year Member



Netscape 7.1

D_Blackwell

6:58 pm on Jun 19, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Not entirely clear on you're doing. Does this help with part of it?

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<head>
<title>Untitled</title>
<STYLE TYPE="text/css">
<!--
.klasa {
background: #ff0;
width: 260px;
font-size: 90%;
text-align: center;
border: 2px solid #000;
/*display: inline;
white-space: wrap;*/
}
-->
</STYLE>
</head>
<body>
<div class="klasa">
<code>
<img src="image.gif" width="240" height="60" border="1">
ala ma asa
</code>
</div>
<code class="webcam">
<img src="image.gif" width="240" height="60" border="1">
ala ma asa
</code>
</body>
</html>

createErrorMsg

7:00 pm on Jun 19, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



I just checked the W3C standards for "white-space:" and it doesn't list "wrap" as a value of that property:
[w3.org...]

Perhaps you need white-space: normal;?