开发者

Place <div> 'under' drop shadow

I have a black navigation bar (bar) and a vertical white page (page).

The page is supposed to run from to to bottom and look like it just comes out from right under the bar. The bar has a drop shadow which should obviously be 'on' the page - like this:

Place <div> 'under' drop shadow

The problem with this is that the page needs a z-index of -1 to look like this (both have a fixed or relative positioning) - and this means (at least in Chrome) that I can't select or click开发者_JS百科 anything on the page.

When I assign a z-index of 2 (bar being 10) it obviously doesn't work anymore:

Place <div> 'under' drop shadow

Yet at least I can click the page's elements.

How can I achive the correct look while still being able to click/select elements?


you could set box-shadow: inset (...) to page.
http://jsfiddle.net/seler/fP2Gx/

or: http://jsfiddle.net/seler/fP2Gx/12/

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜