Background position, margin-top?

后端 未结 3 912
后悔当初
后悔当初 2021-02-18 14:56

I currently have my background set to top right as:

#thedivstatus {
    background-image: url(\"imagestatus.gif\");
    background-position: right top;
    backg         


        
3条回答
  •  甜味超标
    2021-02-18 15:25

    If you mean you want the background image itself to be offset by 50 pixels from the top, like a background margin, then just switch out the top for 50px and you're set.

    #thedivstatus {
        background-image: url("imagestatus.gif");
        background-position: right 50px;
        background-repeat: no-repeat;
    }
    

提交回复
热议问题