最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

javascript - nivo slider image resize issue - Stack Overflow

programmeradmin0浏览0评论

I have nivo slider in my web page. I need to display images of various width and height.The larger image displays behind the smaller image. Please refer the following screenshot.

I have to remove displaying larger image behind the small image. Is there any possibility to do it with nivo slider?

I have nivo slider in my web page. I need to display images of various width and height.The larger image displays behind the smaller image. Please refer the following screenshot.

I have to remove displaying larger image behind the small image. Is there any possibility to do it with nivo slider?

Share Improve this question asked May 29, 2012 at 9:45 designersvsoftdesignersvsoft 1,8599 gold badges39 silver badges66 bronze badges 2
  • As I know, nivo slider needs images to be same sized. The sizes are mentioned in the css file. – Vinay Commented May 29, 2012 at 9:56
  • The images are coming from back end and i shouldn't mention the sizes. – designersvsoft Commented May 29, 2012 at 9:58
Add a comment  | 

3 Answers 3

Reset to default 10

I used this and it's worked :)

.theme-default .nivoSlider img {
    position:absolute;
    top:0px;
    left:0px;
    display:none;
    width: 556px;
    height: 183px !important;
}

add this

<style>
    .slider-wrapper,.nivoSlider , img{
        width:500px;
        height:200px;
        margin-bottom:0px !important;
        border-radius:10px;
    }
</style>
.theme-navigation-inside .nivoSlider img {
    position:absolute;
    top:0px;
    left:0px;
    display:none;
    height: auto;
}

I fhound this took care of the problem

发布评论

评论列表(0)

  1. 暂无评论