I avoided asking someone for help for my own learning. But of all the difficulties that I have been facing, I can not solve it and it is the last step of the project.
I need to insert a cell phone image in the center of the screen. So far so good. Researching solutions found to make the responsive image. The problem is that the image is left with the scroll bar active at lower resolutions. How do I make the image resize and skip the scroll?
Follow the code I have so far.
<style type="text/css">
body{
background: #363636;
}
.backgroundCell{
width: 100%;
height: auto;
}
.backgroundCell img{
max-width: 556px; /* Máximo da largura da imagem */
width: 100%;
max-height: 1139px; /* Máximo da altura da imagem */
min-height: auto; /* Mínimo da altura, por padrão “auto” */
background-size: 100%;
background-repeat: no-repeat;
}
</style>
<div class="main-panel">
<div class="content">
<div class="container-fluid">
<div class="row">
<div class="col-md-12">
<center>
<div class="backgroundCell">
<img src='assets/img/iphone_bg.png' />
</div>
</center>
</div>
</div>
</div>
</div>
</div>