I have this div with a background image, and I want to scale it on hover, but I don't want to scale the children of the div. I've tried many things but I haven't found a solution.. Does anybody know how to do this?
I want to scale .bgi on hover
div.header
{
grid-area: header;
overflow: hidden;
display: flex;
align-content: flex-start;
align-items: flex-start;
justify-content: space-between;
}
div.bgi
{
background-image: url(images/office.jpg);
background-size: cover;
background-attachment: fixed;
background-position: center;
}
<div class="header bgi tint">
<div class="logo">
<img src="assets/images/logo.png" />
</div>
<a class="Links" id="link" href="/someurl.html"
name
</a>
</div>