P
P
postya2020-09-20 21:23:31
css
postya, 2020-09-20 21:23:31

Why does CSS render differently on other computers?

A project on VUE JS, a
friend sent a screen from a computer that the text is displayed incorrectly, which is blue, it is shifted.
I tested on all my browsers, with all extensions turned off. I also checked the site through incognito. It displays fine for me, but it doesn't display correctly for other people.

What could be causing this?

Screenshot from my computer: Screenshot
5f679c75ee4a9060000092.jpeg

from another person's computer:
5f679cb4d2c9f014779924.jpeg

<div class="content">
     <div class="bio-fade">
        <h2>Glinka</h2>
        <h2>Anastasya</h2>
      </div>

     <div class="container">
        <div class="bio">
          <h1>Hello,</h1>
          <h2>I'm GLINKA</h2>
        </div>
    </div>
</div>


.container {
  width: 90%;
  margin: 0 auto;
  z-index: 999;
}

.content {
  display: grid;
  width: 100%;
  grid-template-columns: 1fr 1fr;
  justify-items: start;
  position: relative;
  overflow: hidden;
  margin-left: var(--nav-width);
}

.bio {
  height: 20%;
  width: 100%;
  text-align: left;
  z-index: 999;
  margin-top: 8em;
}

.bio-fade {
  position: absolute;
  right: 310px;
  top: 60px;
  z-index: 1;
}

.bio-fade h2 {
  margin: 0;
  text-transform: uppercase;
  text-align: left;
  color: #0b022d;
  font-size: 5rem;
  font-family: "Montserrat", sans-serif;
  font-weight: 900;
}

.bio-fade h2:last-child {
  transform: translateY(22px);
}

Answer the question

In order to leave comments, you need to log in

3 answer(s)
P
postya, 2020-09-21
@postya

I'm wildly sorry for my question, the problem was that people had different display scales in the browser: D

A
Artem Zolin, 2020-09-20
@artzolin

Your friend has a different screen resolution and/or aspect ratio. All pixel values ​​need to be converted to relative units

A
Anton, 2020-09-20
Semenov

I usually do this:
1. Find out all the parameters of that computer in order to be able to repeat what is happening
**For example, in safari on a poppy, placeholders and inputs on one site behaved very differently, so I would understand what was wrong, and not so it was on the iPad, I installed a virtual machine and a poppy OS ... because I myself work in Windows.
2. You open the layout here and there and compare, sometimes you can find the difference in the default values.
3. if there is no difference in the parameters, then just try to "nail" all the parameters, set the same values ​​wherever possible. In rare cases, you can write code that will change the layout depending on the device or browser.
Sometimes the system fonts are stupidly different... which even seem to be called the same...

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question