CSS box-shadow hidden (z-index does not fix)

前端 未结 3 1333
清歌不尽
清歌不尽 2021-01-31 06:52

I have a box-shadow on my #primaryNav div. Unfortunately, the shadow is being covered/hidden by the background of the following #page element.

3条回答
  •  滥情空心
    2021-01-31 07:38

    As jlego already said a relative position should fix it. By the way I would suggest ensuring that there is no shadow left or right of the #primaryNav. Since #primaryNav has a width of 100% a shadow on the side makes a horizontal scrollbar appear.

    For fixing this you could set a overflow:hidden to #iframe

提交回复
热议问题