P
P
postya2020-08-19 15:34:28
iOS
postya, 2020-08-19 15:34:28

Why is the layout different on the real iphone(se)?

I did the layout, in the browser in developer tools at a resolution of 320 px for iphone se
The layout looks normal, but on a real device (iphone se) one element (dollar sign) moved
out Why is this happening?

Browser:

5f3d1ba858436058228078.jpeg

Real Devices Iphone SE:

5f3d1bc348824034847715.jpeg

Item:

.price > span {
  position: absolute;
  transform: translateX(-0.7em);
  -webkit-transform: translateX(-0.7em);
  font-size: 2.3rem;
  font-weight: 600;
  color: var(--active);
}

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question