Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

183
Vistas
Can not set up a width for an image that is places in a div in Slider

I've got an issue. Can not set up a picture size for an image in my div. The div ( .item) is actually part of a slider. Is there any possible way to fix it? Maybe it is a problem of a slider itself which I've taken form Own Carousel. I've tried to use padding, but it will not work in my situation due to the fact that I will have to add another text div next to the picture which I am planning to position in a left part of the .item div.

 <div class="slider-div">
                    <div class="owl-carousel owl-theme">
                        <div class="item it1">
                            <img class="img1"   
                                src="img/290576980_1645406479179093_188937483150472320_n.jpg" 
                                  alt="">
                       
                    </div>
                    <div class="item it2"></div>
                    <div class="item it3"></div>
                   
                </div>
            </div>
            <div class="pic-div"></div>
        </div>





    .slider-div{
        height: 100%;
        width: 70%;
        display: flex;
        justify-content: center;
        align-items: center;
        border-radius: 20px;

        }
    .owl-carousel{
        width: 100%;
        display: flex;
        border-radius: 20px;
        }
    .item{
        margin: 0 auto;
        background-color: #ffff;
        height: 350px;
        width: 90%;
        border-radius: 20px;
        display: flex;
        align-items: center;
    
    }

    .img1{
        height: 200px;
        /* Can not set up the width */
        width: 40%; 
    }

Thanks in advance =)

about 4 years ago · Juan Pablo Isaza
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda