Skip to content
Advertisement

how do I make elements not move when other elements do?

i have some image elements that when hovered on, scale up, however, this causes some other elements to move, which i dont want happening.

I have tried things like float: right which work, but dont fit for my website, since it’s margined and centered.

here is a simpled version of my site:

JavaScript
JavaScript

Advertisement

Answer

Use transform: scale(110%) without changing any sizes.

User contributions licensed under: CC BY-SA
3 People found this is helpful
Advertisement