I am trying to set the border of a circle around a div with a background image. I want the background image to be as large as it can be with a 10px indent between it and the border. This image goes (reduced) to 50 pixels when scrolling the user and removing the border, so he needs to leave a background image that takes up as much space as possible.
CSS
.brand, .brand:visited, .brand:hover {
display: block;
position: relative;
height: 100px; width: 100px;
margin-top: 25px;
background: url('img/logo.png') no-repeat center center;
background-size: 100% auto;
padding: 10px;
border: 1px solid #fff;
border-radius: 50%;
}
Everything works except filling. Not sure how to fix it. ALSO I don't want to crop the background image
source
share