1
I’m developing a website, and an image is not resizing as I expected, I have the image:
<div class="cover">
<div class="cover-image" style="background-image : url('http://4.bp.blogspot.com/-AycDlsjqzZg/TwNAOJgtvWI/AAAAAAAAAsU/7J9HDoXhHLs/s1600/bouken-ni+logo+01.png')"></div>
</div>
and I have my CSS class to resize:
.cover {
padding: 30px 15px;
margin-bottom: 30px;
color: inherit;
background-color: #eeeeee;
margin-bottom: 0px !important;
padding: 0px 0px;
background-color: transparent;
display: -webkit-box;
display: -ms-flexbox;
display: -webkit-flex;
display: flex;
-webkit-align-items: center;
align-items: center;
overflow: hidden;
position: relative;
height: 70%;
}
.cover .cover-image {
z-index: -1;
position: absolute;
top: 0px;
width: 100%;
min-height: 30%;
height: 100%;
background-size: cover;
background-position: center;
}
resize as ? how do you want it to look ?
– Gabriel Rodrigues
https://jsfiddle.net/ddLaqyvq/
– Gabriel Rodrigues
The resize control is done in CSS. But you have to analyze if the image size is good. Its width is 100% you can increase its height too. But it’s still a little hard to understand...
– Rogers Corrêa
@Next log I plan to put any image. This way I want to let it resize automatically
– André Martins