PDA

View Full Version : Word-wrapping in firefox


SEOvB
03-25-2008, 04:12 AM
I've got a problem in firefox where a word refuses to wrap inside the div and its simply overflowing it.

I've got it fixed in IE with no problem, but for the life of me can not solve the problem for FF, heres the CSS i'm using to solve it..err attempt to solve it.


<div class="tags" style="text-wrap: normal;word-wrap: break-word;">
YADAYADANFGIWTNHIWERIFWEIFGWERNHTIGWERTI@$%U(@$RNI EFDSNK
</div>


The "YADAYADANFGIWTNHIWERIFWEIFGWERNHTIGWERTI@$%U(@$RNI EFDSNK" part extends outside my div, and i can't get it to break so its more like


YADAYADANFGIWTNHIWERIF
WEIFGWERNHTIGWERTI@$%
U(@$RNIEFDSNK


understand?

Lynne
03-25-2008, 03:38 PM
A quick google on this brings up this article which says that Firefox does not word-wrap (http://www.thescripts.com/forum/thread541236.html). I read some other links that came up that say that IE proprietary css item which is why it won't work for you.

SEOvB
03-25-2008, 03:43 PM
Yep, seems to be "the greatest browser in the world" doesn't support word-wrapping :lol:

I found a javascript soloution, but couldn't get it to work properly either. Thanks Lynne

Jase2
03-25-2008, 03:49 PM
Wouldn't this help you?

https://addons.mozilla.org/en-US/firefox/addon/2351

Regards Jason :)

Lynne
03-25-2008, 03:52 PM
Wouldn't this help you?

https://addons.mozilla.org/en-US/firefox/addon/2351

Regards Jason :)
That would only help if he forces all his firefox users to add that addon, no?

SEOvB
03-25-2008, 03:53 PM
Wouldn't this help you?

https://addons.mozilla.org/en-US/firefox/addon/2351

Regards Jason :)

Yea it'll help me, but it won't fix my layout for FireFox users who don't have it installed.

Instead i used overflow: hidden; css value to stop it from extending past the box until it gets some firefox support

Jase2
03-25-2008, 04:02 PM
This is one of IE better things :p

Regards Jason :)