The content associated with a fixed item does not scroll

Dear Ovelka Stacks,

See the following page:

https://dogcollars-3.myshopify.com/products/short-sleeve-t-shirt

I am trying to fix the position of the field "Order Information" so that it remains in a prominent place and the content behind it scrolls. This is a special Shopify theme. I applied the following extra CSS:

@media only screen and (min-width: 1000px) {

  .product-single {
    width: 70%;
    height: auto;
    position: relative;
  }

  .order-details {
    width: 300px;
    height: auto;
    padding: 10px;
    top: 50px;
    left: 70%;
    background: rgba(255,255,0,0.2);
    position: fixed;  
  } 
}

The element "order details" is positioned correctly, but not fixed. This item scrolls along with the content located behind this layer.

Please help me today.

Thanks in advance!

+4
source share
1 answer

The problem is the styles transform: translate3don the element .page-container.

, , ​​ " " . / .

https://jsfiddle.net/nLbntzqk/


EDIT:
, . 'transform3d', : .

+2

Source: https://habr.com/ru/post/1690836/


All Articles