CSS - position absolute & document flow

后端 未结 4 1025
暖寄归人
暖寄归人 2021-01-14 06:48

Yes, I know doesn\'t work with position absolute, but is there a way to display elements \"below\" (after in code) not behind them?

Example:



        
4条回答
  •  北恋
    北恋 (楼主)
    2021-01-14 07:16

    The only way I was able to do what you are asking is setting the top property of h2, aka positioning the text after the image. Fiddle.

    PS: position:block doesn't exist. Only absolute, relative, static, and fixed.

提交回复
热议问题