...

View Full Version : firefox doesn't wrap !



gwendaal
10-04-2004, 03:56 PM
with this code

p.newsInfos
{
width:150px;
background-color:#BB7D5C;
color:#ffffff;
border:1px solid #BB7D5C;
height:100px;
text-align:left;
vertical-align:top;
padding:0;
margin:0;
font-family:Arial, Helvetica, sans-serif;
font-size:11px;
font-weight:400;
white-space:pre;
}

the text doesn't wrap with firefox and it works perfectly with IE
I get a p with a width > 1000 px !!

do you know how to wrap the text ??

thank you

gohankid77
10-04-2004, 04:33 PM
"white-space: pre" is messing it up. Get rid of it, and it should wrap. Although, if you put it in there, there must be a reason, right?

gwendaal
10-04-2004, 05:44 PM
but is not to force the wraping ??? I tried to add it because it was not wraping ...

gohankid77
10-04-2004, 06:54 PM
Actually, when I tested it, it caused the content to be cut in Firefox, and it caused the <p> to expand to fit the content in IE. What browser are you using, and could you please post some more code or a URL.

gwendaal
10-13-2004, 05:00 AM
then it is

white-space:nowrap; ?

gohankid77
10-13-2004, 05:04 AM
white-space: normal

That's the default value. Try using that or just remove it.

gwendaal
10-13-2004, 07:05 AM
and nowrap doesn't exist ??

thank you

gohankid77
10-13-2004, 04:22 PM
You don't want to use "nowrap" because it doesn't wrap until a line break, <br> is encountered.



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum