Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

185
Visualizações
Chrome developer tool CSS position negative value

I am learning CSS and using Chrome dev tool to check the size and position of a div element.

But the value on the right side of the "position box" for the div is negative. I don't know where it comes from.

What does this value mean? How can I find out what is causing this negative value?

The -0.8 in the picture is the value I am asking for.

enter image description here

This div has some children, and partial style for the div is like this:

 position: fixed;
 top: 0;
 left: 0;

 width: 100%;
 height: 67.2px;

 padding-left: 2em;
 padding-right: 2em;

In the console, with the div selected, if I do

$0.getBoundingClientRect()

it will give following details:

DOMRect {x: 0, y: 0, width: 376, height: 67.20000457763672, top: 0, …}
bottom: 67.20000457763672
height: 67.20000457763672
left: 0
right: 376
top: 0
width: 376
x: 0
y: 0
about 4 years ago · Juan Pablo Isaza
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda