Background position, margin-top?

后端 未结 3 921
后悔当初
后悔当初 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:22
     background-image: url(/images/poster.png);
     background-position: center;
     background-position-y: 50px;
     background-repeat: no-repeat;
    
    0 讨论(0)
  • 2021-02-18 15:24
    #div-name
    
    {
    
      background-image: url('../images/background-art-main.jpg');
      background-position: top right 50px;
      background-repeat: no-repeat;
    }
    
    0 讨论(0)
  • 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;
    }
    
    0 讨论(0)
提交回复
热议问题