Boostrap problem when adjusting the scaling of an image

0
  

I have a problem with the subject of the image, because when doing it with boostrap you should, the image, shrink slowly as you increase the size, but what it does is cut. I have not found a solution online, what I need is that the image is always completely visible, that nothing is cut.   Many graacias

<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Practicando lo que estabamos haciendo en la empresa ( especia de div personalizado por cada item de la lista)</title>

    <link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.1.0/css/bootstrap.min.css" integrity="sha384-9gVQ4dYFwwWSjIDZnLEWnxCjeSWFphJiwGPXr1jddIhOegiu1FwO5qRGvFXOdJZ4" crossorigin="anonymous">
 <script src="https://ajax.googleapis.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script>
  <script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.14.0/umd/popper.min.js"></script>
  <script src="https://maxcdn.bootstrapcdn.com/bootstrap/4.1.0/js/bootstrap.min.js"></script>
</head>

</head>
<style>
#item{
        border: solid;
    }
#titulo{
      margin-left: 20px;

}
#cuerpo{
    background: LightCyan ;
}
    #logo{



        /*display: block;*/
      width: 100%;
      height: 200px;
      background-image: url('http://2.bp.blogspot.com/_QtDFVR44S_Q/TTu95-aiCqI/AAAAAAAAA-k/jP65Ns2H-f0/s1600/camaleon2.jpg');
      background-position: center;
      background-repeat: no-repeat;
      background-size: cover;
    }


</style>
<body>

    <div class="container">




        <div id="item" class="row">
            <div id="cuerpo"    class="col-10">
                <h1 id="titulo">Titulo del Item</h1>
                <p>Lorem ipsum dolor sit amet, consectetur adipisicing elit. Ad, temporibus. Nobis quaerat, expedita commodi velit. Placeat eum consectetur illum at pariatur corrupti molestias, culpa, quos ut dolore nulla cumque eligendi.</p>
            </div>
            <div id="logo" class="col-2">

                </div>
<!-- ---------------------------------- -->



    </div>

</body>
</html>
    
asked by josanangel 26.04.2018 в 18:21
source

0 answers