CSS position: absolute screen resolution problem

前端 未结 4 1471
暖寄归人
暖寄归人 2020-12-30 07:40

CSS code:

top:45;
left:98;
float:right;
position:absolute;z-index:2;

I have done the above coding for a floating div when I wa

4条回答
  •  借酒劲吻你
    2020-12-30 08:15

    None of the above solutions work for me... keep it on absolute position and give margin-top, margin-left...in %age like;

    margin-top:10%;
    margin-left:5%;
    

    that will automatically adjust w.r.t. screen resolution...

    this worked perfect for me. tested on different resolutions.

    have a fun!

提交回复
热议问题