Css cross-cutting problem



  • There's a piece of marking:

    <div class="item">
        <img src="" alt="">
        <p>Наполнение</p>
    </div>
    

    And the corresponding piece of style:

    .item img {
        content: url(../img/star.png);
        width: 50px;
        margin-bottom: 15px;
        margin-top: 25px;
    }
    

    In general, it works correctly, but not in all the bruises. Or it doesn't look like a picture. Chrome works, but when you look at Leese or Edge, it doesn't show up, it just doesn't. It's all in place:

    введите сюда описание изображения

    I thought it was necessary to turn up and up, but in the end, the empty space was rising. How can you fix that?

    P.S. Bootstarp.



  • I'm surprised it works somewhere. http://htmlbook.ru/css/content Look at the phrase "applicable to pseudonyms before and :after."




Suggested Topics

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