css positioning issue with jquery slider

蹲街弑〆低调 提交于 2019-12-11 20:24:42

问题


I have a slight issue, keeping the content in my carousel in place when i increase my screen size beyond 1200px content pushes to the left hand side of the screen click here

I've nested the carousel in it's own wrapper and given it the following css properties

.carsousel-container{
    position: relative;
    width: 100%;
}   

.carousel{
    max-width: 1000px;
    width: 100%;
    margin: 0 auto;
    min-width: 320px;
    position: absolute;
}
.carousel-bg{
    margin-top: -542px;
}

.left-side{
    margin: -487px 40px;
}

#shots-carousel{
    width: 90%;
    margin: 46px 13%;
    position: absolute;
    max-width: 1600px;
}

Does anyone know what is causing this issue, i've come across it before, managed to fix it but don't no how i did it. Can someone kindly pin-point me where i'm going wrong so i can save time in future.


回答1:


That was challenging! Interesting styles you're using there. This fixes it:

Get rid of the clearfix class on carousel, and change position:absolute to position:relative

You'll need to do the same sort of thing on .rslides_tabs



来源:https://stackoverflow.com/questions/12168437/css-positioning-issue-with-jquery-slider

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!