Why is "overflow:Hidden" not working on my slide?

Asked

Viewed 569 times

1

<div class="slideshow">
    <div class="slide">
        <div class="slide-1"> <a href="#"><img src="img/01.jpg"></a>

            <div class="info-slide-left"> <a href="#"><h2>Lorem Ipsum é simplesmente uma simulação de texto da indústria.</h2></a> 
            </div>
        </div>
        <div class="slide-2"> <a href="#"><img src="img/img02.jpg"><a/>
     <div class="info-slide-rigth">

       <a href="#"><h2>Lorem Ipsum é simplesmente uma simulação de texto da indústria.</h2></a>

        </div>
    </div>
    <div class="slide-3"> <a href="#"><img src="img/img02.jpg"></a>

        <div class="info-slide-right-3"> <a href="#"><h2>Lorem Ipsum é simplesmente uma simulação de texto da indústria.</h2></a>

        </div>
    </div>
</div>
<div class="slide">
    <div class="slide-1"> <a href="#"><img src="img/01.jpg"></a>

        <div class="info-slide-left"> <a href="#"><h2>Lorem Ipsum é simplesmente uma simulação de texto da indústria.</h2></a> 
        </div>
    </div>
    <div class="slide-2"> <a href="#"><img src="img/img02.jpg"><a/>
     <div class="info-slide-rigth">

       <a href="#"><h2>Lorem Ipsum é simplesmente uma simulação de texto da indústria.</h2></a>

        <div class="publicacao-2">
            <p>Artigo publicado em
                <time datetime="2014-09-05T18:20" itemprop="datePublished">05 de setembro de 2014</time>
            </p>
        </div>
    </div>
</div>
<div class="slide-3"> <a href="#"><img src="img/img02.jpg"></a>

    <div class="info-slide-right-3"> <a href="#"><h2>Lorem Ipsum é simplesmente uma simulação de texto da indústria.</h2></a>

    </div>
</div>
</div>

CSS code:

.slideshow{
    width:100%;
    max-width:980px;
    height:auto;
    margin:0 auto;
}

.slide{
    width:100%;
    height:auto;
    display:block;
}

.slide-1{
    width:80%;
    height:505px;
    float:left;
}

.slide-2{
    width:20%;
    height:250px;
    float:left;
}

.slide-3{
    width:20%;
    height:250px;
    float:left;
}

.slide-1 img{
    width:635px;
    height:500px;
}

.slide-2 img{
    width:345px;
    height:250px;
    margin-left:-150px;
}

.slide-3 img{
    width:345px;
    height:250px;
    margin-left:-150px;
}
  • You could post your html code too?

  • ok. I put it in the description of the question !!

  • You forgot to put the div with class slideshow, it doesn’t exist in your code

  • I already have it in my code !! Only I didn’t cheat here

  • Look at the example I put in the answer, here it worked right

  • I’ll test it out for you !

  • found the problem !! thanks for the help !!

Show 2 more comments

1 answer

0

You didn’t put the div with class slideshow in your code.

I created an example with your code but adding this div

Example link

EDIT:

In the example I put the max-width only with 300px for testing.

.slideshow{
    ...
    max-width:300px;
    ...
}
  • didn’t work !! I already have the div slideshow only it doesn’t appear here !! I don’t know why !!

Browser other questions tagged

You are not signed in. Login or sign up in order to post.