473,385 Members | 2,014 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

Text wrap problem firefox

Hi, I have a div where I have set its width to 480.
It works fine in IE, the text that i m inserting in this div gets
wrapped, but in firefox the text that i m inserting in the div is
coming out.
What's a workaround for that.

Here is my stylesheet for that div.
#detailsPopup2 {position:absolute;border-width:2px;border:solid;border-
color:#666666;text-align:left;padding:5px;top:480px;left:60px;width:
400px;height:auto;background:#52F3FF;font-family:sans-serif;font-size:
80%;z-index:110;}
Oct 2 '08 #1
3 2041
SAM
Le 10/2/08 6:15 PM, Sunny a écrit :
Hi, I have a div where I have set its width to 480.
no, it's 400.
It works fine in IE, the text that i m inserting in this div gets
wrapped, but in firefox the text that i m inserting in the div is
coming out.
What's a workaround for that.
no problemo with my Fx

perhaps the default font-size is higger in your Fx than in your IE and
you have a word (a string without white-spaces) longer than the width of
the div ?
Here is my stylesheet for that div.
#detailsPopup2 {position:absolute;border-width:2px;border:solid;border-
color:#666666;text-align:left;padding:5px;top:480px;left:60px;width:
400px;height:auto;background:#52F3FF;font-family:sans-serif;font-size:
80%;z-index:110;}
Try fixing the width of your div in 'em' instead of 'px'
Oct 2 '08 #2
On Oct 2, 1:02 pm, SAM <stephanemoriaux.NoAd...@wanadoo.fr.invalid>
wrote:
Le 10/2/08 6:15 PM, Sunny a écrit :
Hi, I have a div where I have set its width to 480.

no, it's 400.
It works fine in IE, the text that i m inserting in this div gets
wrapped, but in firefox the text that i m inserting in the div is
coming out.
What's a workaround for that.

no problemo with my Fx

perhaps the default font-size is higger in your Fx than in your IE and
you have a word (a string without white-spaces) longer than the width of
the div ?
Here is my stylesheet for that div.
#detailsPopup2 {position:absolute;border-width:2px;border:solid;border-
color:#666666;text-align:left;padding:5px;top:480px;left:60px;width:
400px;height:auto;background:#52F3FF;font-family:sans-serif;font-size:
80%;z-index:110;}

Try fixing the width of your div in 'em' instead of 'px'
Hi em didn't work.

But ya, if the string is longer,its wrappimg in IE, But in Firefox its
coming out of the div.
What should I do now.?
Oct 2 '08 #3
SAM
Le 10/2/08 7:36 PM, Sunny a écrit :
On Oct 2, 1:02 pm, SAM <stephanemoriaux.NoAd...@wanadoo.fr.invalid>
wrote:
>Try fixing the width of your div in 'em' instead of 'px'

Hi em didn't work.
???
But ya, if the string is longer,its wrappimg in IE, But in Firefox its
coming out of the div.
IE is wrong :-(
What should I do now.?

width: 400px; /* for IE < 7 */
min-width: 400px; /* for other browsers */
max-width: 600px;
Oct 2 '08 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

7
by: Roderik | last post by:
Hi, When I use <pre> inside my <td> cells, the text won't flow to a new line and the table gets to large in width. This will appear in Firefox this way, Internet Explorer will wrap the lines,...
9
by: lkrubner | last post by:
I've got a function, you can see it below, that is being called onmouseup in the textarea on my main form. The idea is to find a selection if possible and store that text in a global variable. I...
1
by: bryanrite | last post by:
I have two floating divs within a 100% width container div. In IE when you resize the window to the point where the text should wrap, it wraps and extends the height of the container div. In...
3
by: Fluffy Convict | last post by:
I am trying to write a script that changes a textarea wrap realtime, basically like you can switch to and from "wordwrap" in Microsofts Notepad. Because of a bug...
8
by: Mark D. Smith | last post by:
Hi I have googled but not found a solution to wordwrap in a textarea using firefox/netscape. is there a style sheet solution or am i stuck with not being able to force wrapping in a textarea...
6
by: Markus Ernst | last post by:
Hi Searching for a possibility to display some text with preserved white space and line breaks, but with long lines being wrapped, I found this CSS declaration, which I found helpful: pre {...
9
by: martymix | last post by:
simple question: I have a simple <dt>test text</dt> I get the innerHTML of that dt, and I try and append some text to it like so: dt = document.getElementsByTagName('dt') var text =...
6
by: Victor | last post by:
Hi all i have a css question about how to wrap a long text by using css. for example I have a very long text like "ddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddd" there...
12
by: Mark | last post by:
Hi I'm looking to create a colapsable list like what we see in a news reader or on a forum. - Basically, any number of levels up to 10 (i.e. more than whats likely to be needed) - Able to...
15
by: removeps-groups | last post by:
How to wrap text in <ptag if the text has no spaces and is very long? Here is an example: ...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
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,...
0
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...
0
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,...
0
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...

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.