place an image above revolution slider

我们两清 提交于 2019-12-13 07:30:04

问题


I am trying to place an image partially above revolution slider (a part of the upper side of slider should be covered by the image) I tried with

image{position:relative;
z-index:10;
}
slider{position:relative;
z-index:1;
}

but it does not seem to work here is the link of the page: http://qebaalrabee.com/green-main/ here is how it should be:


回答1:


It might seem illogical but the solution I found is placing the image under the slider and using margin-top:-20vw;

it worked!
seems like downside elements have higher z-index



来源:https://stackoverflow.com/questions/41022904/place-an-image-above-revolution-slider

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