HTML background image offset by x pixels from the center

后端 未结 9 1366

I\'d like to put an image as the background of a webpage but have it offset by some number of pixels with respect to the center.

How can I do this?

I want:

9条回答
  •  天命终不由人
    2020-12-23 09:26

    The only method I've found for this is to have the background inside another div, then use javascript to reposition ...

    
    
    
    
    
        
    blah

提交回复
热议问题