word-wrap: break-word doesn't work in IE?



  • div.root_cat a{
        word-wrap: break-word;
        font-size: 12px;
        line-height: 14px;
        color: #0a79c1;
        text-decoration: none;
    }
    

    In all browsers, the words are translated and IE is not. How do you spell it?



  • There are two reasons for not moving:

    First, the element should have a different image from inline♪ That's what this is about. a I'm sorry.
    Secondly, the width shall be indicated for the element.

    Example of correction of conduct:

    /* С пустым js не работает сниппет */
    a {
      font-size: 12px;
      line-height: 14px;
      color: #0a79c1;
      text-decoration: none;
      width: 100%;
      word-wrap: break-word;
      display: block
    }
    div {
      border: 1px solid #000;
      padding: 5px;
      width: 150px;
    }
    <div>
      <a href="#">Оченьдлинноесловобезединогопробела</a>
    </div>




Suggested Topics

  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2