Jump to content

dg-here

Neophyte
  • Posts

    1
  • Joined

  • Last visited

Everything posted by dg-here

  1. Здравствуйте. В FF div.container__right приобретает ширину в 4000px, когда должен иметь ширину вложенной в него картинки. Не пойму, почему так происходит? в остальных браузерах все хорошо... <div class="container"> <div class="container__left"> <p>Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.</p> </div> <div class="container__right"><img src="img/stocks/card-3.jpeg" alt=""></div> </div> .container{ position: relative; width: 100%; margin-top: 50px; &__left{ width: 50%; } &__right{ display: inline-block; position: absolute; top: 0; right: 0; height: 100%; direction: rtl; img{ height: 100%; object-fit: contain; } } }
×
×
  • 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. See more about our Guidelines and Privacy Policy