css positioning z-index negative margins

后端 未结 3 2001
梦如初夏
梦如初夏 2021-02-07 02:18

I have the following html - no matter what i do I cant seem to get the middle div to appear on top of the top and also on top of the bottom. It sits fine above the top but where

3条回答
  •  醉酒成梦
    2021-02-07 02:58

    z-index is useless on a static positioned element. try position:relative. if negative margins don't work out for you, use top or bottom and negative values.

提交回复
热议问题