CSS to keep element at “fixed” position on screen

后端 未结 11 1425
旧巷少年郎
旧巷少年郎 2020-12-04 23:22

I\'m looking for a trick to create a \"fixed\" HTML object on the browser screen using CSS. I want it to stay in the same position all the time, even when the user scrolls t

11条回答
  •  -上瘾入骨i
    2020-12-05 00:01

    Make sure your content is kept in a div, say divfix.

    Your Code goes here

    CSS :

    #divfix {
           bottom: 0;
           right: 0;
           position: fixed;
           z-index: 3000;
    }
    

    Hope ,It will help you..

提交回复
热议问题