Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 8 of 8
  1. #1
    Regular Coder
    Join Date
    Jul 2004
    Location
    France
    Posts
    141
    Thanks
    0
    Thanked 0 Times in 0 Posts

    firefox doesn't wrap !

    with this code
    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
    Last edited by liorean; 10-04-2004 at 08:12 PM. Reason: disabled smilies, added [code]

  • #2
    Regular Coder
    Join Date
    Jul 2004
    Location
    engoku no anime
    Posts
    354
    Thanks
    0
    Thanked 0 Times in 0 Posts
    "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?

  • #3
    Regular Coder
    Join Date
    Jul 2004
    Location
    France
    Posts
    141
    Thanks
    0
    Thanked 0 Times in 0 Posts
    but is not to force the wraping ??? I tried to add it because it was not wraping ...

  • #4
    Regular Coder
    Join Date
    Jul 2004
    Location
    engoku no anime
    Posts
    354
    Thanks
    0
    Thanked 0 Times in 0 Posts
    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.

  • #5
    Regular Coder
    Join Date
    Jul 2004
    Location
    France
    Posts
    141
    Thanks
    0
    Thanked 0 Times in 0 Posts
    then it is

    white-space:nowrap; ?

  • #6
    Regular Coder
    Join Date
    Jul 2004
    Location
    engoku no anime
    Posts
    354
    Thanks
    0
    Thanked 0 Times in 0 Posts
    white-space: normal

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

  • #7
    Regular Coder
    Join Date
    Jul 2004
    Location
    France
    Posts
    141
    Thanks
    0
    Thanked 0 Times in 0 Posts
    and nowrap doesn't exist ??

    thank you

  • #8
    Regular Coder
    Join Date
    Jul 2004
    Location
    engoku no anime
    Posts
    354
    Thanks
    0
    Thanked 0 Times in 0 Posts
    You don't want to use "nowrap" because it doesn't wrap until a line break, <br> is encountered.


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •