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

195
Visualizações
Margin-top doesnt change only when i delete the transform:(translatey) of the parent

Im trying to change the margin top of button that is located inside a div.

In know that it is impossible cause button by default is inline element, so i changed the button display to inline-block.. BUT i still couldnt change the button margin-top. Only when i deleted the the arttibute "transform: translatey(-50%)" of the parent, i could change the margin-top of the button! Why is that? and my second question, when i insert -50 to the button margin-top it distorted the button, again, why?

.carousel-actions {
    display: flex;
    justify-content: space-between;
    position: absolute;
    width:100%;
    top: 50%;
    transform: translatey(-50%);  
}

button {
    margin: 40px 20px;
    padding: 10px 15px;
    border-radius: 50%;
    font-weight: 900;
    display: inline-block;   
}
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