开发者

img stretch through 100% of container's height - howto

i actually thought that i knew how to do this but now i do have some problems. img is contained in div#slider which width is 50% of a page's width and height is 450px.

img{
width:95%;
height:77%;
}

width works just fine, but height is constantly same. ???

page is HERE (it is 1st post, jq开发者_JS百科uery gallery)


The nivo slider automatically adjusts the size to the size of the uploaded images. Just upload properly sized images and the slider will automatically wrap around them.

There is some javascript included with the Nivo Slider to do all of this work for you, it is most likely conflicting with your img CSS.

Easiest solution? Upload proper image sizes and let the slider dictate the size.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜