Jump to content

Long lines does not wrap in Firefox only in IE


departedmind

Recommended Posts

Dynamically created long lines does not wrap in Firefox and exceeds the width of the container. How can I solve that...

 

Div has the style

 

.first{

font-family:Arial;

position: relative;

margin:0 auto;

float: left;

top: 111px;

left: 50px;

width:668px;

height:auto;

 

}

 

And inside that div there is a table with width 400, The texts comes from database and if it is long it does not break in Firefox (works fine in IE)

 

Any solution ....

 

 

Link to comment
Share on other sites

I can't say I know the exact problem, but I do see some issues with your CSS.  First, you should declare your fonts in the body of your page.  Second, whey is the div positioned?.  You also have your margins set as if you want to center the div, but then you use a float.  Top and Left are for absolute positioning, and why is you height set to auto?  I say if you clean up the css you may fix your problem.  You also failed to post the css for the table in the div.

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.