1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

XF 1.5 resize background image to scale

Discussion in 'XenForo Questions and Support' started by vanucci, Oct 24, 2015.

  1. vanucci

    vanucci Active Member

    is there a way to rescale the background image set in style properties>general>body ?

    It would be ideal that no matter natural sioze of my BG image, it rescales to the size of the webpage
     
  2. Lisa

    Lisa Well-Known Member

    Use CSS.

    Code:
      background-size: cover;
    
    Although, if you want it to the entire webpage, the image needs to be in HTML, not body.
     
  3. vanucci

    vanucci Active Member

    thank you for the reply, i added the
    background-size: cover;
    to extra.css but nothing changed, so i mst be doing it wrong
     
  4. Lisa

    Lisa Well-Known Member

    No, just add it to the css part of the SP you've edited.

    So if in the Body SP, add it there.
     
    vanucci likes this.
  5. vanucci

    vanucci Active Member

    thank you, worked
     
    Lisa likes this.
  6. Lisa

    Lisa Well-Known Member

    You're welcome :)
     

Share This Page