Preventing element from displaying on top of footer when using position:fixed

后端 未结 4 1890
难免孤独
难免孤独 2021-01-06 23:35

I\'d like to use the CSS property position:fixed to fix the position of an element but at the same time prevent the element from being positioned over my footer when the use

4条回答
  •  既然无缘
    2021-01-07 00:04

    Add some extra margin-bottom to your footer so the user can scroll past the bottom a bit so your footer can clear the fixed element.

提交回复
热议问题