departedmind Posted November 3, 2008 Share Posted November 3, 2008 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 .... Quote Link to comment https://forums.phpfreaks.com/topic/131177-long-lines-does-not-wrap-in-firefox-only-in-ie/ Share on other sites More sharing options...
jcombs_31 Posted November 3, 2008 Share Posted November 3, 2008 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. Quote Link to comment https://forums.phpfreaks.com/topic/131177-long-lines-does-not-wrap-in-firefox-only-in-ie/#findComment-681068 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.