Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 4029904
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 20, 20262026-05-20T11:24:15+00:00 2026-05-20T11:24:15+00:00

Below is my code that works fine on IE 8 but it doesn’t work

  • 0

Below is my code that works fine on IE 8 but it doesn’t work on safari 5. The text wraps in IE and the div’s layout is properly in placed on IE. But on safari everything is a mess.
Guys please help me to make this work on safari 5.

I want the layout on safari to look like this on the picture
enter image description here

Thanks in advance 🙂

Note: I just added a sample url from web to make the display better.

<html>
<body>  
<div style="overflow:auto;width:200px;clear:both;border:1px black solid;padding:4px;">
        <div class="clsContainer div1" style="border:1px solid black;margin-right:3px;float:left;">
            <img src="http://www.scicomcommerce.com/media/catalog/product/cache/1/image/5e06319eda06f020e43594a9c230972d/m/y/my-computer.jpg" 
        alt="" style="height:50px;width:50px;"/>        
        </div>
        <div class="clsContainer div2" style="float:left;">
            <div id="first" style="border:1px solid black;margin-bottom:3px;word-wrap:break-word;padding:2px;"> 
                The quick brown fox jumps over the lazy dog.
        </div>
            <div id="second" style="border:1px solid black;margin-top:8px;word-wrap:break-word;padding:2px;"> 
                ThisIsAVeryLongggggWordThatDoesNotWrapPleaseHelpMeSolveThisWordWrapIssueInSafari
        </div>
        </div>
</div>
</body>   
</html>
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-20T11:24:15+00:00Added an answer on May 20, 2026 at 11:24 am

    You need to add an explicit width to your #first and #second divs:

    #first
    {
        width: 138px;
        border:1px solid black;
        margin-bottom:3px;
        word-wrap:break-word;
        padding:2px;
    }
    
    #second
    {
        border:1px solid black;
        margin-top:8px;
        width: 138px;
        word-wrap:break-word;
        padding:2px;
    }
    

    Example for you here. Tested in Safari 5.0.3 for Windows.

    But Safari as yet doesn’t support break-word so you’ll have to go with using actual words for now 🙂

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

No related questions found

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.